From: pascale.noyret Date: Thu, 20 Apr 2017 14:38:24 +0000 (+0200) Subject: pb python3 X-Git-Tag: Salome_8_3_Hydro_2_0rc1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5ecef0dc64055f54a1f864b979e58cc05f1c9f4a;p=modules%2Feficas.git pb python3 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index be6811fd..2ecd6000 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -27,14 +27,14 @@ project ( Eficas CXX C ) set ( CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/CMakeModules" ) # Detection de Python -find_package ( PythonInterp 2.4 REQUIRED ) +find_package ( PythonInterp REQUIRED ) if (PYTHONINTERP_FOUND) string ( RANDOM tmpPyScript ) set ( tmpPyScript "${tmpPyScript}.py" ) file ( WRITE ${tmpPyScript} "# Automaticaly generated by CMake. Do NOT edit. Changes will be lost import sys -print '%d.%d' % ( sys.version_info[0], sys.version_info[1] ) +print ('%d.%d' % ( sys.version_info[0], sys.version_info[1] )) " ) get_source_file_property ( PYSCRIPT_LOC ${tmpPyScript} LOCATION ) execute_process ( COMMAND ${PYTHON_EXECUTABLE} ${PYSCRIPT_LOC}