summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2013-01-19 22:35:18 -0500
committerAlan Antonuk <alan.antonuk@gmail.com>2013-01-23 00:53:34 -0500
commit906f04f8a2b5c2cac8ffb977ba0a6967822712bd (patch)
tree92aa5f6820128ed376e56bbf4ef6fd31eacaaf80 /CMakeLists.txt
parent38e741b669bd1c30551c685712a272a4a3f04bfc (diff)
downloadrabbitmq-c-github-ask-906f04f8a2b5c2cac8ffb977ba0a6967822712bd.tar.gz
FIX: htonll redeclared on Win32 v8
config.h.in didn't include the HAVE_HTONLL, have added this htonll is declared inline in the Winsock2.h header, must use CheckSymbolExists from there.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt7
1 files changed, 6 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c129316..e0bd31f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -47,6 +47,7 @@ endif()
include(TestCInline)
include(CheckFunctionExists)
+include(CheckSymbolExists)
include(CheckLibraryExists)
include(CMakePushCheckState)
@@ -92,7 +93,11 @@ cmake_pop_check_state()
cmake_push_check_state()
set(CMAKE_REQUIRED_LIBRARIES ${SOCKET_LIBRARIES})
-check_function_exists(htonll HAVE_HTONLL)
+if (WIN32)
+ check_symbol_exists(htonll Winsock2.h HAVE_HTONLL)
+else (WIN32)
+ check_function_exists(htonll HAVE_HTONLL)
+endif (WIN32)
cmake_pop_check_state()
option(REGENERATE_AMQP_FRAMING "Regenerate amqp_framing.h/amqp_framing.c sources (for developer use)" OFF)