diff options
author | Alan Antonuk <aega@med.umich.edu> | 2012-05-22 17:22:27 -0400 |
---|---|---|
committer | Alan Antonuk <aega@med.umich.edu> | 2012-05-24 15:47:12 -0400 |
commit | 16341eb2140c848bd549a112960164bd11924e85 (patch) | |
tree | 7dbaf1b0ccf1805e8821caf8aaee9fd9471c66db /tests/CMakeLists.txt | |
parent | c29a40c2ffe48e174f1c212ac715b528693f3edc (diff) | |
download | rabbitmq-c-github-ask-16341eb2140c848bd549a112960164bd11924e85.tar.gz |
msinttypes.h is always required on MSVC for testscmake_build_improvements
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 5 |
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) |