mirror of https://github.com/labapart/gattlib
doc: Only build Python documention when Sphinx is installed
parent
08ce1b3303
commit
6a4d00b43c
|
@ -31,7 +31,7 @@ add_custom_target(gattlib-doxygen ALL DEPENDS ${DOXYGEN_INDEX_FILE})
|
|||
#
|
||||
|
||||
find_program(SPHINX_EXECUTABLE NAMES sphinx-build DOC "Path to sphinx-build executable")
|
||||
|
||||
if (SPHINX_EXECUTABLE)
|
||||
set(SPHINX_SOURCE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
set(SPHINX_BUILD ${CMAKE_CURRENT_BINARY_DIR}/docs/gattlib/sphinx)
|
||||
|
||||
|
@ -42,3 +42,6 @@ add_custom_target(Sphinx ALL
|
|||
DEPENDS ${DOXYGEN_INDEX_FILE}
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
|
||||
COMMENT "Generating documentation with Sphinx")
|
||||
else()
|
||||
message("Install Sphinx to generate Python documentation")
|
||||
endif()
|
||||
|
|
Loading…
Reference in New Issue