Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
stop being cleaver when using cmake. This thing sometimes does its job
[simgrid.git] / CMakeLists.txt
index 61c9b47..7b75241 100644 (file)
@@ -145,7 +145,7 @@ set(PythonInterp_FIND_VERSION 3)
 set(PythonInterp_FIND_VERSION_COUNT 1)
 set(PythonInterp_FIND_VERSION_MAJOR 3)
 include(FindPythonInterp)
-if(NOT PYTHON_EXECUTABLE)
+if(NOT PYTHON_FOUND)
   message(FATAL_ERROR "Please install Python (version 3 or higher).")
 endif()