From: rnv Date: Tue, 29 Mar 2016 11:04:21 +0000 (+0300) Subject: Fix problem with detection python libraries. X-Git-Tag: V7_8_0a2~3^2~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=fe54e9f2a539d1a80eaf8b85bb6978350b9f0c5d;p=modules%2Fkernel.git Fix problem with detection python libraries. --- diff --git a/salome_adm/cmake_files/FindSalomePythonLibs.cmake b/salome_adm/cmake_files/FindSalomePythonLibs.cmake index 06e87aae5..2228abb1d 100644 --- a/salome_adm/cmake_files/FindSalomePythonLibs.cmake +++ b/salome_adm/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)