clean up the cmake
This commit is contained in:
@@ -12,16 +12,6 @@ function(setup_sphinx_environment)
|
|||||||
message(FATAL_ERROR "sphinx-build not found. Please install Sphinx.")
|
message(FATAL_ERROR "sphinx-build not found. Please install Sphinx.")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Get Sphinx version
|
|
||||||
execute_process(
|
|
||||||
COMMAND ${SPHINX_EXECUTABLE} --version
|
|
||||||
OUTPUT_VARIABLE SPHINX_VERSION_OUTPUT
|
|
||||||
ERROR_VARIABLE SPHINX_VERSION_OUTPUT
|
|
||||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
|
||||||
)
|
|
||||||
message(STATUS "Found Sphinx: ${SPHINX_EXECUTABLE}")
|
|
||||||
message(STATUS "${SPHINX_VERSION_OUTPUT}")
|
|
||||||
|
|
||||||
# Export to parent scope
|
# Export to parent scope
|
||||||
set(SPHINX_EXECUTABLE "${SPHINX_EXECUTABLE}" PARENT_SCOPE)
|
set(SPHINX_EXECUTABLE "${SPHINX_EXECUTABLE}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|||||||
@@ -18,7 +18,3 @@ add_custom_target(markdown
|
|||||||
COMMENT "Building Markdown documentation"
|
COMMENT "Building Markdown documentation"
|
||||||
VERBATIM
|
VERBATIM
|
||||||
)
|
)
|
||||||
|
|
||||||
# Build both formats
|
|
||||||
add_custom_target(docs ALL)
|
|
||||||
add_dependencies(docs html markdown)
|
|
||||||
|
|||||||
Reference in New Issue
Block a user