summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <aega@med.umich.edu>2012-05-22 17:22:27 -0400
committerAlan Antonuk <aega@med.umich.edu>2012-05-24 15:47:12 -0400
commit16341eb2140c848bd549a112960164bd11924e85 (patch)
tree7dbaf1b0ccf1805e8821caf8aaee9fd9471c66db
parentc29a40c2ffe48e174f1c212ac715b528693f3edc (diff)
downloadrabbitmq-c-github-ask-cmake_build_improvements.tar.gz
msinttypes.h is always required on MSVC for testscmake_build_improvements
-rw-r--r--tests/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
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)