From 16341eb2140c848bd549a112960164bd11924e85 Mon Sep 17 00:00:00 2001 From: Alan Antonuk Date: Tue, 22 May 2012 17:22:27 -0400 Subject: msinttypes.h is always required on MSVC for tests --- tests/CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 93ccb9a..d3d683a 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -1,5 +1,10 @@ include_directories(${LIBRABBITMQ_INCLUDE_DIRS}) +# Needed because no version of MSVC has inttypes.h +if (MSVC) + include_directories(${CMAKE_SOURCE_DIR}/librabbitmq/win32/msinttypes) +endif() + add_executable(test_parse_url test_parse_url.c) target_link_libraries(test_parse_url rabbitmq) add_test(parse_url test_parse_url) -- cgit v1.2.1