X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e5fdc0f90b4c3ec53803150b783320e9cd4ebc75..c6de5d3fc33ec47c1b0d97e24463de43dd4eb129:/CMakeLists.txt diff --git a/CMakeLists.txt b/CMakeLists.txt index aa8cfedce4..0c9da4ada3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,6 +140,15 @@ if(NOT PERL_FOUND) message(FATAL_ERROR "Please install Perl to compile SimGrid.") endif() +# tesh.py needs python 3 (or the module python-subprocess32 on python2.8+) +set(PythonInterp_FIND_VERSION 3) +set(PythonInterp_FIND_VERSION_COUNT 1) +set(PythonInterp_FIND_VERSION_MAJOR 3) +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") set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)