Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "cosmetics"
authorMartin Quinson <martin.quinson@loria.fr>
Fri, 2 Sep 2016 13:17:52 +0000 (15:17 +0200)
committerMartin Quinson <martin.quinson@loria.fr>
Fri, 2 Sep 2016 13:18:00 +0000 (15:18 +0200)
This reverts commit 113d6838b784a16f9648022e7e56ad5176ed3e4b.

I should not trust random tutorials found on blogposts

CMakeLists.txt

index 574a1b7..0c9da4a 100644 (file)
@@ -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")