From 6f780e2815c54797f09770689049bf9dc16aa306 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 29 Mar 2016 14:06:00 +0300 Subject: [PATCH] Fix problem with detection python libraries. --- cmake_files/FindSalomePythonLibs.cmake | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.2