From 9f68158c36f85e1e881708653d57fdd4185bb385 Mon Sep 17 00:00:00 2001 From: TMA Salome Date: Fri, 15 Jun 2018 11:43:18 +0200 Subject: [PATCH] Force detection python 2.7 by CMake --- CMakeCommon/FindPython.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}) -- 2.39.2