Salome HOME
Python3 porting: find python with CMake-3.3 version. gdd/python3_dev
authorrnv <rnv@opencascade.com>
Wed, 24 May 2017 07:34:03 +0000 (10:34 +0300)
committerrnv <rnv@opencascade.com>
Wed, 24 May 2017 07:34:03 +0000 (10:34 +0300)
CMakeModules/FindLibbatchPython.cmake

index fa2900c6b40be6b9564d7a5e2d4c6da66e299d81..8efdef4a92186b6c317cddc49757d7d953659c26 100644 (file)
@@ -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)