]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix Python libs detection problem with CMake when several versions are in the system
authorbarate <barate>
Mon, 21 Jan 2013 08:29:55 +0000 (08:29 +0000)
committerbarate <barate>
Mon, 21 Jan 2013 08:29:55 +0000 (08:29 +0000)
CMakeLists.txt

index 54d02e86b05a285447ec73f0ba2250720b6eda7e..d62d040b0ebfa2c545f2bf268dd784c74e7a9f05 100755 (executable)
@@ -66,6 +66,8 @@ find_package(Threads REQUIRED)
 
 # Python
 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})
 find_package(PythonLibs REQUIRED)
 set(PYLOGLEVEL WARNING)