From: TMA Salome Date: Fri, 15 Jun 2018 09:43:18 +0000 (+0200) Subject: Force detection python 2.7 by CMake X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f68158c36f85e1e881708653d57fdd4185bb385;p=modules%2Fshaper.git Force detection python 2.7 by CMake --- diff --git a/CMakeCommon/FindPython.cmake b/CMakeCommon/FindPython.cmake index e48b6c206..d7c657ff9 100644 --- a/CMakeCommon/FindPython.cmake +++ b/CMakeCommon/FindPython.cmake @@ -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})