Salome HOME
projects
/
tools
/
libbatch.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Python3 porting: find python with CMake-3.3 version.
[tools/libbatch.git]
/
CMakeModules
/
FindLibbatchPython.cmake
diff --git
a/CMakeModules/FindLibbatchPython.cmake
b/CMakeModules/FindLibbatchPython.cmake
index fa2900c6b40be6b9564d7a5e2d4c6da66e299d81..8efdef4a92186b6c317cddc49757d7d953659c26 100644
(file)
--- 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)")
# 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. Find package - config mode first (i.e. looking for XYZ-config.cmake)
IF(WIN32)
IF(CMAKE_BUILD_TYPE STREQUAL Debug)