From: Björn Esser Date: Fri, 10 Apr 2020 12:20:57 +0000 (+0200) Subject: CMake: Build Doxygen documentation out-of-tree. X-Git-Tag: json-c-0.14-20200419~20^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=58670ec64ed15000ca296a875c66cd956952fdf4;p=thirdparty%2Fjson-c.git CMake: Build Doxygen documentation out-of-tree. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index db00b046..a0f226c4 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)