diff options
author | Alan Antonuk <alan.antonuk@gmail.com> | 2012-03-06 12:42:18 -0800 |
---|---|---|
committer | Alan Antonuk <alan.antonuk@gmail.com> | 2012-03-06 12:42:18 -0800 |
commit | c0a56f927af99561a99f69c1fd8a01e6536c5fab (patch) | |
tree | 0826a26d518d135e4f5d2087772dac55ab995c11 | |
parent | f45fc60fc346d5758acd1359483dadecc708a914 (diff) | |
parent | b410efda35a3f02c3e333beb3e27b2d16d07ad5b (diff) | |
download | rabbitmq-c-github-ask-c0a56f927af99561a99f69c1fd8a01e6536c5fab.tar.gz |
Merge pull request #7 from alanxz/win32_example_include_fix
Fix for stdint.h not found in examples directory
-rw-r--r-- | examples/CMakeLists.txt | 2 | ||||
-rw-r--r-- | librabbitmq/CMakeLists.txt | 14 |
2 files changed, 14 insertions, 2 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 8b58e8b..d5ea525 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -1,4 +1,4 @@ -include_directories(${librabbitmq_SOURCE_DIR} ${librabbitmq_BINARY_DIR}) +include_directories(${LIBRABBITMQ_INCLUDE_DIRS}) if (WIN32) set(PLATFORM_DIR windows) diff --git a/librabbitmq/CMakeLists.txt b/librabbitmq/CMakeLists.txt index d350459..1608ae8 100644 --- a/librabbitmq/CMakeLists.txt +++ b/librabbitmq/CMakeLists.txt @@ -55,7 +55,19 @@ if(MSVC) endif(MSVC_VERSION LESS 1600) endif(MSVC) -include_directories(${SOCKET_IMPL} ${MSINTTYPES_INCLUDE}) +set(LIBRABBITMQ_INCLUDE_DIRS + ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR} + ${SOCKET_IMPL} + ${MSINTTYPES_INCLUDE} + ) + +include_directories(${LIBRABBITMQ_INCLUDE_DIRS}) + +set(LIBRABBITMQ_INCLUDE_DIRS + ${LIBRABBITMQ_INCLUDE_DIRS} + PARENT_SCOPE) + add_definitions(-DBUILDING_LIBRABBITMQ) set(RABBITMQ_SOURCES |