From: barate Date: Fri, 22 Mar 2013 09:53:13 +0000 (+0000) Subject: More proper specification of version for Python libs X-Git-Tag: V7_2_0b1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=54c8fe77624589073f3fcf85c28052264bb05deb;p=modules%2Fkernel.git More proper specification of version for Python libs --- diff --git a/salome_adm/cmake_files/FindSalomePYTHON.cmake b/salome_adm/cmake_files/FindSalomePYTHON.cmake index 31c57d65e..2578151fb 100644 --- a/salome_adm/cmake_files/FindSalomePYTHON.cmake +++ b/salome_adm/cmake_files/FindSalomePYTHON.cmake @@ -8,13 +8,11 @@ if(EXISTS ${PYTHON_ROOT_DIR}) set(CMAKE_PROGRAM_PATH ${PYTHON_ROOT_DIR}/bin) endif(EXISTS ${PYTHON_ROOT_DIR}) find_package(PythonInterp REQUIRED) -# Set PythonLibs_FIND_VERSION To avoid problems when several versions are in the system -SET(PythonLibs_FIND_VERSION ${PYTHON_VERSION_STRING}) if(EXISTS ${PYTHON_ROOT_DIR}) set(PYTHON_INCLUDE_DIR ${PYTHON_ROOT_DIR}/include/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}) set(PYTHON_LIBRARY ${PYTHON_ROOT_DIR}/lib/libpython${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}${CMAKE_SHARED_LIBRARY_SUFFIX}) endif(EXISTS ${PYTHON_ROOT_DIR}) -find_package(PythonLibs REQUIRED) +find_package(PythonLibs ${PYTHON_VERSION_STRING} EXACT REQUIRED) MESSAGE("Python includes : " ${PYTHON_INCLUDE_DIR}) MESSAGE("Python library : " ${PYTHON_LIBRARY}) MESSAGE("Python binary : " ${PYTHON_EXECUTABLE})