Use CMake 3.12+ facilities for detecting Python.
[alexxy/gromacs.git] / docs / CMakeLists.txt
index ee70c62f979ecd52e97aace051fcbcfb288a86ad..3d8ce9b2e0dea083010a4501d2473abaced3c19d 100644 (file)
@@ -704,7 +704,7 @@ set(HTML_BUILD_NOT_POSSIBLE_REASON)
 set(HTML_BUILD_WARNINGS)
 
 # Next, turn it off if any of the preconditions are unsatisified
-if (NOT PythonInterp_FOUND)
+if (NOT Python3_Interpreter_FOUND)
     set(HTML_BUILD_IS_POSSIBLE OFF)
     set(HTML_BUILD_NOT_POSSIBLE_REASON "Python is required")
 elseif (NOT SPHINX_FOUND)