summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorwoldan <vvoldan@gmail.com>2013-10-28 18:34:17 +0100
committerAlan Antonuk <alan.antonuk@gmail.com>2013-10-28 20:43:12 -0700
commit1594ea4dea05dfa26fabac80732aa4734f59e1bb (patch)
tree75f69e10480021e5ea641078daab06a20c504e44 /CMakeLists.txt
parent5f291ea772a536da3087f216e240016365e61a82 (diff)
downloadrabbitmq-c-github-ask-1594ea4dea05dfa26fabac80732aa4734f59e1bb.tar.gz
Switched to CMAKE_CURRENT_.. variants for source and binary dirs to enable nested builds.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5c849bd..fe7db10 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -283,15 +283,15 @@ if (BUILD_API_DOCS)
if (NOT DOXYGEN_FOUND)
message(FATAL_ERROR "Doxygen is required to build the API documentation")
endif ()
- configure_file(${CMAKE_SOURCE_DIR}/docs/Doxyfile.in ${CMAKE_BINARY_DIR}/docs/Doxyfile @ONLY)
+ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in ${CMAKE_CURRENT_BINARY_DIR}/docs/Doxyfile @ONLY)
add_custom_target(docs
COMMAND ${DOXYGEN_EXECUTABLE}
VERBATIM
- WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/docs
+ WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/docs
DEPENDS rabbitmq
COMMENT "Generating API documentation"
- SOURCES ${CMAKE_SOURCE_DIR}/docs/Doxyfile.in
+ SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/docs/Doxyfile.in
)
endif ()