]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Fix problem with detection python libraries.
authorrnv <rnv@opencascade.com>
Tue, 29 Mar 2016 11:04:21 +0000 (14:04 +0300)
committerrnv <rnv@opencascade.com>
Tue, 29 Mar 2016 11:04:21 +0000 (14:04 +0300)
salome_adm/cmake_files/FindSalomePythonLibs.cmake

index 06e87aae5a94304f5393bae0cb9ab604c95618c6..2228abb1d0f501796fff4ac87abbe3c42d8d66f1 100644 (file)
@@ -34,6 +34,7 @@ ENDIF()
 IF (SALOMEPYTHONINTERP_FOUND AND NOT "${PYTHON_VERSION_STRING}" STREQUAL "") 
    # Trying to search libraries with same version as an interpreter version
    SET(PythonLibs_FIND_VERSION ${PYTHON_VERSION_STRING})
+   SET(PythonLibs_FIND_VERSION_MAJOR ${PYTHON_VERSION_MAJOR})
 ENDIF()
 SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PythonLibs PYTHON_INCLUDE_DIR 2)