summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2014-04-13 15:01:24 -0700
committerAlan Antonuk <alan.antonuk@gmail.com>2014-04-13 15:01:24 -0700
commitfe844e41ffad5691607982cbfe4054aacdcb81e0 (patch)
treeb4da004af538ed679172e2cc99101c5f9c25c77c /tests
parentc2ce2cb0f356a48c409a27bc228dc3ad7218e82f (diff)
downloadrabbitmq-c-github-ask-fe844e41ffad5691607982cbfe4054aacdcb81e0.tar.gz
CMake: Add -DHAVE_CONFIG_H to tests/*.c
test_hostcheck includes a file which includes amqp_private.h which needs config.h.
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 7554794..3a90464 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -8,6 +8,8 @@ if (MSVC)
include_directories(win32/msinttypes)
endif (MSVC)
+add_definitions(-DHAVE_CONFIG_H)
+
add_executable(test_parse_url test_parse_url.c)
target_link_libraries(test_parse_url ${RMQ_LIBRARY_TARGET})
add_test(parse_url test_parse_url)