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}