]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Force detection python 2.7 by CMake esy/Python27
authorTMA Salome <tma.edf@opencascade.com>
Fri, 15 Jun 2018 09:43:18 +0000 (11:43 +0200)
committerTMA Salome <tma.edf@opencascade.com>
Fri, 15 Jun 2018 09:43:18 +0000 (11:43 +0200)
CMakeCommon/FindPython.cmake

index e48b6c206a10b729b18c512bde81b071b6368f0a..d7c657ff95cf6f7c17d6cbba188c0842d57a9278 100644 (file)
@@ -27,7 +27,7 @@ IF($ENV{PYTHON_INCLUDE})
   SET(PYTHON_INCLUDE_DIR ${PATH_PYTHON_INCLUDE_DIR} CACHE PATH "path to where Python.h is found" FORCE)
 ENDIF()
 
-FIND_PACKAGE(PythonLibs REQUIRED)
-FIND_PACKAGE(PythonInterp REQUIRED)
+FIND_PACKAGE(PythonLibs 2.7 REQUIRED)
+FIND_PACKAGE(PythonInterp 2.7 REQUIRED)
 
 INCLUDE_DIRECTORIES(${PYTHON_INCLUDE_DIR})