Skip to content

Commit fd19fdf

Browse files
committed
Use find_package to locate Sphinx
1 parent 46d4312 commit fd19fdf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cmake/sphinx.cmake

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
option(USE_DOCS OFF)
22
if(USE_DOCS)
3-
set(SPHINXBUILD "sphinx-build")
4-
set(SPHINXINTL "sphinx-intl")
3+
find_package(Sphinx REQUIRED)
4+
set(SPHINXBUILD "${SPHINX_EXECUTABLE}")
5+
find_program(SPHINXINTL sphinx-intl)
56
set(SPHINXOPTS "-W" "--keep-going" "-n")
6-
endif(USE_DOCS)
7+
endif()

0 commit comments

Comments
 (0)