docs: make Sphinx optional

This commit is contained in:
Eric Wasylishen 2022-01-29 17:13:57 -07:00
parent ebf385d382
commit baf9e64b27
1 changed files with 1 additions and 1 deletions

View File

@ -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})