X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=cmake_files%2FFindSalomePythonLibs.cmake;h=2228abb1d0f501796fff4ac87abbe3c42d8d66f1;hb=71f92f8a5f1c9994165ba0b6cecce9e89f3beb01;hp=06e87aae5a94304f5393bae0cb9ab604c95618c6;hpb=79386ac5c73f8365c428b8ef595c4ef004959667;p=tools%2Fmedcoupling.git diff --git a/cmake_files/FindSalomePythonLibs.cmake b/cmake_files/FindSalomePythonLibs.cmake index 06e87aae5..2228abb1d 100644 --- a/cmake_files/FindSalomePythonLibs.cmake +++ b/cmake_files/FindSalomePythonLibs.cmake @@ -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)