From 8696b6b09d0ed4eda7f606105ceac88d8c3a0b15 Mon Sep 17 00:00:00 2001 From: mnt Date: Thu, 17 Mar 2016 21:23:07 +0300 Subject: [PATCH] Synchronize adm files --- cmake_files/FindSalomePythonLibs.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake_files/FindSalomePythonLibs.cmake b/cmake_files/FindSalomePythonLibs.cmake index c2e6d58bd..06e87aae5 100644 --- a/cmake_files/FindSalomePythonLibs.cmake +++ b/cmake_files/FindSalomePythonLibs.cmake @@ -31,6 +31,10 @@ IF(EXISTS "${PYTHON_ROOT_DIR}" AND (NOT PYTHONLIBS_ROOT_DIR)) MESSAGE(STATUS "Setting PYTHONLIBS_ROOT_DIR to: ${PYTHON_ROOT_DIR}") SET(PYTHONLIBS_ROOT_DIR "${PYTHON_ROOT_DIR}" CACHE PATH "Path to PythonLibs directory") 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}) +ENDIF() SALOME_FIND_PACKAGE_AND_DETECT_CONFLICTS(PythonLibs PYTHON_INCLUDE_DIR 2) IF(SALOMEPYTHONLIBS_FOUND) -- 2.39.2