Skip to content
Snippets Groups Projects
Commit 8e14f018 authored by Christoph Grüninger's avatar Christoph Grüninger
Browse files

[cmake] Adjust CMake code for Sphinx to use FindPython3

Change required to have the same find routines across
dune-common.
The duplicate code should be merged and put at a single
place that is uncondtionally always called.
parent 5228ecae
Branches
No related tags found
1 merge request!806Feature/find python3
find_package(Sphinx)
find_package(PythonInterp)
find_package(Python3 COMPONENTS Interpreter Development)
function(dune_sphinx_doc)
# Only proceed if Sphinx was found on the system
......@@ -9,7 +9,7 @@ function(dune_sphinx_doc)
endif()
# Only proceed if the python interpreter was found by cmake
if(NOT PYTHONINTERP_FOUND)
if(NOT Python3_Interpreter_FOUND)
message("-- Skipping building Sphinx documentation (Python interpreter was not found!)")
return()
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment