summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjörn Esser <besser82@fedoraproject.org>2020-04-10 14:20:57 +0200
committerBjörn Esser <besser82@fedoraproject.org>2020-04-10 14:20:57 +0200
commit58670ec64ed15000ca296a875c66cd956952fdf4 (patch)
treea7891602d5d71b3ec74163e5bb12311d0015ce33
parenta989651bd4d751218fec6e0e511135d7583eebf5 (diff)
downloadjson-c-58670ec64ed15000ca296a875c66cd956952fdf4.tar.gz
CMake: Build Doxygen documentation out-of-tree.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index db00b04..a0f226c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -341,8 +341,8 @@ option(BUILD_DOCUMENTATION "Create and install the HTML based API documentation(
if (DOXYGEN_FOUND)
add_custom_target(doc
- COMMAND ${DOXYGEN_EXECUTABLE} ${CMAKE_BINARY_DIR}/Doxyfile
- WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
+ COMMAND ${DOXYGEN_EXECUTABLE} ${PROJECT_SOURCE_DIR}/Doxyfile
+ WORKING_DIRECTORY ${PROJECT_BINARY_DIR})
# request to configure the file
configure_file(Doxyfile Doxyfile)