Skip to content

Commit 97d59a9

Browse files
committed
Prohibit in-place doxygen builds
Based on some build problems in issue #9413, it is checked that there is no attempt to build doxygen in-place (i.e. that the main source directory and the build directory have to be different directories). (The original problem shows errors like: ``` cycle in dependency tree for target 'generated_src\configimpl.corr' ``` )
1 parent f47ee86 commit 97d59a9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,10 @@ set_property(CACHE force_qt PROPERTY STRINGS OFF Qt6 Qt5)
3636

3737
SET(enlarge_lex_buffers "262144" CACHE INTERNAL "Sets the lex input and read buffers to the specified size")
3838

39+
if ("${PROJECT_BINARY_DIR}" STREQUAL "${PROJECT_SOURCE_DIR}")
40+
message(FATAL_ERROR "Doxygen cannot be generated in-place, the build directory (${PROJECT_BINARY_DIR}) has to differ from the doxygen main directory (${PROJECT_SOURCE_DIR})\nPlease don't forget to remove the already file created file 'CMakeCache.txt' and the directory 'CMakeFiles'!")
41+
endif()
42+
3943
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
4044
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake/Sanitizers")
4145
set(TOP "${PROJECT_SOURCE_DIR}")

0 commit comments

Comments
 (0)