summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Antonuk <alan.antonuk@gmail.com>2012-02-28 15:38:26 -0500
committerAlan Antonuk <aega@med.umich.edu>2012-03-06 15:40:45 -0500
commitb410efda35a3f02c3e333beb3e27b2d16d07ad5b (patch)
tree0826a26d518d135e4f5d2087772dac55ab995c11
parentf45fc60fc346d5758acd1359483dadecc708a914 (diff)
downloadrabbitmq-c-github-ask-win32_example_include_fix.tar.gz
Fix for stdint.h not found in exampleswin32_example_include_fix
-rw-r--r--examples/CMakeLists.txt2
-rw-r--r--librabbitmq/CMakeLists.txt14
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