]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Reapply patch for Python version string (really needed when Python 2.x and 3.x are...
authorbarate <barate>
Thu, 14 Feb 2013 09:37:25 +0000 (09:37 +0000)
committerbarate <barate>
Thu, 14 Feb 2013 09:37:25 +0000 (09:37 +0000)
CMakeLists.txt

index 3146ee329b61f218afaeae21429950fdd440f239..d45b42b080b4d69a2095962550c1d46e24228589 100755 (executable)
@@ -73,6 +73,8 @@ if(EXISTS ${PYTHON_ROOT_DIR})
   set(CMAKE_PROGRAM_PATH ${PYTHON_ROOT_DIR}/bin)
 endif(EXISTS ${PYTHON_ROOT_DIR})
 find_package(PythonInterp REQUIRED)
+# Set PythonLibs_FIND_VERSION To avoid problems when several versions are in the system
+SET(PythonLibs_FIND_VERSION ${PYTHON_VERSION_STRING})
 if(EXISTS ${PYTHON_ROOT_DIR})
   set(PYTHON_INCLUDE_DIR ${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR})
   set(PYTHON_LIBRARY ${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX})