summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAndrew Kravchuk <awkravchuk@gmail.com>2012-07-21 01:36:37 +0400
committerAndrew Kravchuk <awkravchuk@gmail.com>2012-07-21 01:36:37 +0400
commit7d450edd25e0264a02da93a20b87574bc2add494 (patch)
treeffa7c92a476d7e0b8a1f630d9343b71169e65633 /CMakeLists.txt
parentfabfafd8260dc08352c08b0d2766d8cb48066770 (diff)
downloadrabbitmq-c-7d450edd25e0264a02da93a20b87574bc2add494.tar.gz
Fix to CMakeLists.txt so it can be included via add_subdirectory
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 194c25a..3bb2381 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 2.6)
project(rabbitmq-c "C")
-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
set(VERSION "0.2")
@@ -37,9 +37,9 @@ include(TestCInline)
find_path(RABBITMQ_CODEGEN_DIR
amqp_codegen.py
- PATHS ${CMAKE_SOURCE_DIR}/codegen
- ${CMAKE_SOURCE_DIR}/rabbitmq-codegen
- ${CMAKE_SOURCE_DIR}/../rabbitmq-codegen
+ PATHS ${CMAKE_CURRENT_SOURCE_DIR}/codegen
+ ${CMAKE_CURRENT_SOURCE_DIR}/rabbitmq-codegen
+ ${CMAKE_CURRENT_SOURCE_DIR}/../rabbitmq-codegen
DOC "Path to directory containing amqp_codegen.py (rabbitmq-codegen)"
NO_DEFAULT_PATH
)