From 59722480977e9ef997cd7b3bea16d356cdebb549 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Thu, 12 Sep 2024 18:13:18 +0200 Subject: [PATCH] Fix doxygen INPUT paths for out-of-tree build Patch from Daniel Gruber via Debian. --- src/CMakeLists.txt | 2 +- src/Doxyfile | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4915cea5..e475933a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -336,7 +336,7 @@ if(BUILD_DOC) message(STATUS "dvips command DVIPS_CONVERTER not found but usually required.") endif() - configure_file(${PROJECT_SOURCE_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile COPYONLY) + configure_file(${PROJECT_SOURCE_DIR}/Doxyfile ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile @ONLY) set(DOXY_CONFIG ${CMAKE_CURRENT_BINARY_DIR}/Doxyfile) execute_process( diff --git a/src/Doxyfile b/src/Doxyfile index 79133582..10c79f09 100644 --- a/src/Doxyfile +++ b/src/Doxyfile @@ -898,12 +898,12 @@ WARN_LOGFILE = # spaces. See also FILE_PATTERNS and EXTENSION_MAPPING # Note: If this tag is empty the current directory is searched. -INPUT = "../src/manual.hpp" \ - "../src/cutters" \ - "../src/algo" \ - "../src/geo" \ - "../src/dropcutter" \ - "../src/common" +INPUT = "@CMAKE_CURRENT_SOURCE_DIR@/manual.hpp" \ + "@CMAKE_CURRENT_SOURCE_DIR@/src/cutters" \ + "@CMAKE_CURRENT_SOURCE_DIR@/src/algo" \ + "@CMAKE_CURRENT_SOURCE_DIR@/src/geo" \ + "@CMAKE_CURRENT_SOURCE_DIR@/src/dropcutter" \ + "@CMAKE_CURRENT_SOURCE_DIR@/src/common" # This tag can be used to specify the character encoding of the source files # that doxygen parses. Internally doxygen uses the UTF-8 encoding. Doxygen uses