Simplify how Doxygen CMake variables are set

This commit is contained in:
Chris Thrasher 2024-09-10 16:06:50 -06:00
parent 9c3fcd72d0
commit acc87dfd32

View File

@ -19,6 +19,8 @@ set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR})
set(DOXYGEN_OUTPUT_DIR ${PROJECT_BINARY_DIR}/doc) set(DOXYGEN_OUTPUT_DIR ${PROJECT_BINARY_DIR}/doc)
# see if we can generate the CHM documentation # see if we can generate the CHM documentation
set(DOXYGEN_HHC_PROGRAM)
set(DOXYGEN_GENERATE_HTMLHELP NO)
if(SFML_OS_WINDOWS) if(SFML_OS_WINDOWS)
# if HHC is found, we can generate the CHM (compressed HTML) output # if HHC is found, we can generate the CHM (compressed HTML) output
find_program(DOXYGEN_HHC_PROGRAM find_program(DOXYGEN_HHC_PROGRAM
@ -30,14 +32,8 @@ if(SFML_OS_WINDOWS)
set(DOXYGEN_GENERATE_HTMLHELP YES) set(DOXYGEN_GENERATE_HTMLHELP YES)
else() else()
message("Due to conflicts with the HTML output settings in Doxygen ${DOXYGEN_VERSION}, the HTML Help generation will be disabled") 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() endif()
else()
set(DOXYGEN_GENERATE_HTMLHELP NO)
endif() endif()
else()
set(DOXYGEN_HHC_PROGRAM)
set(DOXYGEN_GENERATE_HTMLHELP NO)
endif() endif()
# configure the source Doxyfile by copying it and replacing all @variables@ # configure the source Doxyfile by copying it and replacing all @variables@