From fe844e41ffad5691607982cbfe4054aacdcb81e0 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Sun, 13 Apr 2014 15:01:24 -0700 Subject: CMake: Add -DHAVE_CONFIG_H to tests/*.c test_hostcheck includes a file which includes amqp_private.h which needs config.h. --- tests/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests') 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) -- cgit v1.2.1