From 425f88e63a420740b21a8292e4ab7ba0f760660e Mon Sep 17 00:00:00 2001 From: Pasukhin Dmitry Date: Fri, 14 Feb 2025 11:47:45 +0100 Subject: [PATCH] CMake - Disable building Overview by default #369 Updated default behavior to not build documentation when find doxygen (in case of windows it ofter exist in env variables). Fixed issue when not defined BUILD_DOC_Overview, but found doxygen cmake issue. --- CMakeLists.txt | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 082b6f46fd..3c6d240456 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -195,6 +195,11 @@ if (NOT DEFINED BUILD_INCLUDE_SYMLINK) set (BUILD_INCLUDE_SYMLINK OFF CACHE BOOL "${BUILD_INCLUDE_SYMLINK_DESCR}") endif() +# Overview +if (NOT DEFINED BUILD_DOC_Overview) + set (BUILD_DOC_Overview OFF CACHE BOOL "${BUILD_DOC_Overview_DESCR}") +endif() + if (CMAKE_VERSION VERSION_LESS "3.14") OCCT_CHECK_AND_UNSET (BUILD_INCLUDE_SYMLINK) endif() @@ -868,19 +873,6 @@ if(APPLE) set (INSTALL_NAME_DIR "" CACHE STRING "install_name library suffix on OS X (e.g. @executable_path/../Frameworks)") endif() -# Overview -if (NOT DEFINED BUILD_DOC_Overview) - set (DO_ONLY_CHECK_FOR_DOXYGEN ON) - OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/doxygen") - set (DO_ONLY_CHECK_FOR_DOXYGEN OFF) - - if (CAN_DOXYGEN_BE_USED) - message (STATUS "Info. Overview building is turned on") - endif() - - set (BUILD_DOC_Overview ${CAN_DOXYGEN_BE_USED} CACHE BOOL "${BUILD_DOC_Overview_DESCR}") -endif() - # include the patched or original list of definitions and flags OCCT_INCLUDE_CMAKE_FILE ("adm/cmake/occt_defs_flags")