From: Martin Quinson Date: Fri, 2 Sep 2016 13:17:52 +0000 (+0200) Subject: Revert "cosmetics" X-Git-Tag: v3_14~432 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5cb4a686ee7547f92ce340218b8b8ae755fc1cf6?hp=789fda2379b532c01a06401d26ad2e4d9725c789 Revert "cosmetics" This reverts commit 113d6838b784a16f9648022e7e56ad5176ed3e4b. I should not trust random tutorials found on blogposts --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 574a1b7860..0c9da4ada3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -144,7 +144,10 @@ endif() set(PythonInterp_FIND_VERSION 3) set(PythonInterp_FIND_VERSION_COUNT 1) set(PythonInterp_FIND_VERSION_MAJOR 3) -include(FindPythonInterp REQUIRED) +include(FindPythonInterp) +if(NOT PYTHONINTERP_FOUND) + message(FATAL_ERROR "Please install Python (version 3 or higher).") +endif() if (APPLE) set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")