Skip to content

Commit b229329

Browse files
committed
Simplify how Doxygen CMake variables are set
1 parent 7182877 commit b229329

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

doc/CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ set(DOXYGEN_INPUT_DIR ${PROJECT_SOURCE_DIR})
66
set(DOXYGEN_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR})
77

88
# see if we can generate the CHM documentation
9+
set(DOXYGEN_HHC_PROGRAM)
10+
set(DOXYGEN_GENERATE_HTMLHELP NO)
911
if(SFML_OS_WINDOWS)
1012
# if HHC is found, we can generate the CHM (compressed HTML) output
1113
find_program(DOXYGEN_HHC_PROGRAM
@@ -17,14 +19,8 @@ if(SFML_OS_WINDOWS)
1719
set(DOXYGEN_GENERATE_HTMLHELP YES)
1820
else()
1921
message("Due to conflicts with the HTML output settings in Doxygen ${DOXYGEN_VERSION}, the HTML Help generation will be disabled")
20-
set(DOXYGEN_GENERATE_HTMLHELP NO)
2122
endif()
22-
else()
23-
set(DOXYGEN_GENERATE_HTMLHELP NO)
2423
endif()
25-
else()
26-
set(DOXYGEN_HHC_PROGRAM)
27-
set(DOXYGEN_GENERATE_HTMLHELP NO)
2824
endif()
2925

3026
# configure the source Doxyfile by copying it and replacing all @variables@

0 commit comments

Comments
 (0)