From: rnv Date: Wed, 24 May 2017 07:34:03 +0000 (+0300) Subject: Python3 porting: find python with CMake-3.3 version. X-Git-Tag: V2_4_1~3^2^2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Fgdd%2Fpython3_dev;p=tools%2Flibbatch.git Python3 porting: find python with CMake-3.3 version. --- diff --git a/CMakeModules/FindLibbatchPython.cmake b/CMakeModules/FindLibbatchPython.cmake index fa2900c..8efdef4 100644 --- a/CMakeModules/FindLibbatchPython.cmake +++ b/CMakeModules/FindLibbatchPython.cmake @@ -47,6 +47,10 @@ ENDIF() # Make cache entry SET(PYTHON_ROOT_DIR "${_dflt_value}" CACHE PATH "Path to Python directory (interpreter and libs)") +# python 3 +SET(PythonInterp_FIND_VERSION 3) +SET(PythonInterp_FIND_VERSION_MAJOR 3) + # 2. Find package - config mode first (i.e. looking for XYZ-config.cmake) IF(WIN32) IF(CMAKE_BUILD_TYPE STREQUAL Debug)