File tree Expand file tree Collapse file tree 1 file changed +5
-10
lines changed
Expand file tree Collapse file tree 1 file changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,7 @@ find_program(
1212 NAMES sphinx-build
1313 HINTS "$ENV{SPHINX_DIR} "
1414 PATH_SUFFIXES bin
15- DOC "Sphinx documentation generator"
16- REQUIRED)
15+ DOC "Sphinx documentation generator" )
1716
1817find_program (
1918 DOXYGEN_EXECUTABLE
@@ -61,14 +60,10 @@ function(rocm_add_sphinx_doc SRC_DIR)
6160 list (APPEND VARS -A "${VAR} " )
6261 endforeach ()
6362
64- if (PARSE_USES_DOXYGEN)
65- if (NOT DOXYGEN_EXECUTABLE)
66- message (FATAL_ERROR
67- "rocm_add_sphinx_doc has USES_DOXYGEN set but DOXYGEN_EXECUTABLE is set to ${DOXYGEN_EXECUTABLE} ." )
68- endif ()
69- set (USES_DOXYGEN -D "doxygen_executable=${DOXYGEN_EXECUTABLE} " )
63+ if (PARSE_USE_DOXYGEN)
64+ set (USE_DOXYGEN -D "doxygen_executable=${DOXYGEN_EXECUTABLE} " )
7065 else ()
71- set (USES_DOXYGEN )
66+ set (USE_DOXYGEN )
7267 endif ()
7368
7469 if (NOT TARGET sphinx-${BUILDER} )
@@ -81,7 +76,7 @@ function(rocm_add_sphinx_doc SRC_DIR)
8176 "${SPHINX_EXECUTABLE} "
8277 -b ${PARSE_BUILDER}
8378 -d "${CMAKE_CURRENT_BINARY_DIR} /doctrees"
84- ${USES_DOXYGEN }
79+ ${USE_DOXYGEN }
8580 ${VARS}
8681 "${SRC_DIR} "
8782 "${OUTPUT_DIR} "
You can’t perform that action at this time.
0 commit comments