From 483c27f1c54ae31e0a14ad8a1839b94d4c2f5cfc Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 24 May 2017 10:34:03 +0300 Subject: [PATCH] Python3 porting: find python with CMake-3.3 version. --- CMakeModules/FindLibbatchPython.cmake | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.39.2