From acc87dfd325162ac9d38638e94ca017032cd538d Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Tue, 10 Sep 2024 16:06:50 -0600 Subject: [PATCH] Simplify how Doxygen CMake variables are set --- doc/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt index 700c59c2c..e8d6cc376 100644 --- a/doc/CMakeLists.txt +++ b/doc/CMakeLists.txt @@ -19,6 +19,8 @@ set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR}) set(DOXYGEN_OUTPUT_DIR ${PROJECT_BINARY_DIR}/doc) # see if we can generate the CHM documentation +set(DOXYGEN_HHC_PROGRAM) +set(DOXYGEN_GENERATE_HTMLHELP NO) if(SFML_OS_WINDOWS) # if HHC is found, we can generate the CHM (compressed HTML) output find_program(DOXYGEN_HHC_PROGRAM @@ -30,14 +32,8 @@ if(SFML_OS_WINDOWS) set(DOXYGEN_GENERATE_HTMLHELP YES) else() message("Due to conflicts with the HTML output settings in Doxygen ${DOXYGEN_VERSION}, the HTML Help generation will be disabled") - set(DOXYGEN_GENERATE_HTMLHELP NO) endif() - else() - set(DOXYGEN_GENERATE_HTMLHELP NO) endif() -else() - set(DOXYGEN_HHC_PROGRAM) - set(DOXYGEN_GENERATE_HTMLHELP NO) endif() # configure the source Doxyfile by copying it and replacing all @variables@