diff options
author | Alan Antonuk <aega@med.umich.edu> | 2012-03-06 15:09:22 -0500 |
---|---|---|
committer | Alan Antonuk <aega@med.umich.edu> | 2012-03-06 15:09:22 -0500 |
commit | b9c1acaaa38f4dfe1e537cb39b849fbfc37880ce (patch) | |
tree | abd8c8624af1dc26e8c16fcca93e8476db40d769 | |
parent | 16e2586ff6eff92fb6f805c630faa0b3ab8af5a5 (diff) | |
download | rabbitmq-c-github-ask-b9c1acaaa38f4dfe1e537cb39b849fbfc37880ce.tar.gz |
Fix: add stdint.h to install target on MSVC < 1600vs2008_install_stdint_fix
MSVC doesn't have stdint.h for versions less than 1600, we need to
both have this included and installed along with the header files
as the stdint.h is used from amqp.h
-rw-r--r-- | librabbitmq/CMakeLists.txt | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index 80632ed..d350459 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -49,7 +49,10 @@ else(WIN32) endif(WIN32) if(MSVC) - set(MSINTTYPES_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../msinttypes") + if(MSVC_VERSION LESS 1600) + set(MSINTTYPES_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/../msinttypes") + set(STDINT_H_INSTALL_FILE "${CMAKE_CURRENT_SOURCE_DIR}/../msinttypes/stdint.h") + endif(MSVC_VERSION LESS 1600) endif(MSVC) include_directories(${SOCKET_IMPL} ${MSINTTYPES_INCLUDE}) @@ -76,7 +79,7 @@ install(TARGETS rabbitmq ARCHIVE DESTINATION lib PUBLIC_HEADER DESTINATION include) -install(FILES amqp.h ${CMAKE_CURRENT_BINARY_DIR}/amqp_framing.h +install(FILES amqp.h ${CMAKE_CURRENT_BINARY_DIR}/amqp_framing.h ${STDINT_H_INSTALL_FILE} DESTINATION include) |