From cac5203523b091bc16e57c35fb271d778dbd8e51 Mon Sep 17 00:00:00 2001 From: johltn Date: Thu, 29 Oct 2020 20:43:24 +0100 Subject: [PATCH] Find Sphinx module --- docs/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/docs/CMakeLists.txt b/docs/CMakeLists.txt index fdde3e5df4..42f2a080e2 100644 --- a/docs/CMakeLists.txt +++ b/docs/CMakeLists.txt @@ -1,3 +1,15 @@ +#Look for an executable called sphinx-build +find_program(SPHINX_EXECUTABLE + NAMES sphinx-build + DOC "Path to sphinx-build executable") + +include(FindPackageHandleStandardArgs) + +#Handle standard arguments to find_package like REQUIRED and QUIET +find_package_handle_standard_args(Sphinx + "Failed to find sphinx-build executable" + SPHINX_EXECUTABLE) + find_package(Doxygen REQUIRED) find_package(Sphinx REQUIRED)