docs: make Sphinx optional
This commit is contained in:
parent
ebf385d382
commit
baf9e64b27
|
|
@ -1,7 +1,7 @@
|
||||||
# From:
|
# From:
|
||||||
# https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/
|
# https://devblogs.microsoft.com/cppblog/clear-functional-c-documentation-with-sphinx-breathe-doxygen-cmake/
|
||||||
|
|
||||||
find_package(Sphinx REQUIRED)
|
find_package(Sphinx)
|
||||||
|
|
||||||
if (Sphinx_FOUND)
|
if (Sphinx_FOUND)
|
||||||
set(SPHINX_SOURCE ${CMAKE_CURRENT_SOURCE_DIR})
|
set(SPHINX_SOURCE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue