Changeset View
Changeset View
Standalone View
Standalone View
cmake/FindSphinx.cmake
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | 51 | | |||
52 | # Distros sometimes rename Python executables to allow for parallel | 52 | # Distros sometimes rename Python executables to allow for parallel | ||
53 | # installation of Python2 and Python3 versions | 53 | # installation of Python2 and Python3 versions | ||
54 | find_program(Sphinx_BUILD_EXECUTABLE | 54 | find_program(Sphinx_BUILD_EXECUTABLE | ||
55 | NAMES | 55 | NAMES | ||
56 | sphinx-build | 56 | sphinx-build | ||
57 | sphinx-build2 | 57 | sphinx-build2 | ||
58 | sphinx-build3 | 58 | sphinx-build3 | ||
59 | DOC "Sphinx Documentation Builder (http://sphinx-doc.org/)" | 59 | DOC "Sphinx Documentation Builder (https://www.sphinx-doc.org/)" | ||
60 | ) | 60 | ) | ||
61 | 61 | | |||
62 | if (Sphinx_BUILD_EXECUTABLE) | 62 | if (Sphinx_BUILD_EXECUTABLE) | ||
63 | if(NOT TARGET Sphinx::Build) | 63 | if(NOT TARGET Sphinx::Build) | ||
64 | add_executable(Sphinx::Build IMPORTED) | 64 | add_executable(Sphinx::Build IMPORTED) | ||
65 | set_target_properties(Sphinx::Build PROPERTIES | 65 | set_target_properties(Sphinx::Build PROPERTIES | ||
66 | IMPORTED_LOCATION "${Sphinx_BUILD_EXECUTABLE}" | 66 | IMPORTED_LOCATION "${Sphinx_BUILD_EXECUTABLE}" | ||
67 | ) | 67 | ) | ||
Show All 24 Lines |