From: Martin Quinson Date: Fri, 2 Sep 2016 12:02:27 +0000 (+0200) Subject: stop being cleaver when using cmake. This thing sometimes does its job X-Git-Tag: v3_14~437 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/e0aae7e0cacdc12815feccc83efb7a7f072836cb stop being cleaver when using cmake. This thing sometimes does its job --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 61c9b47041..7b75241087 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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()