Skip to content

Commit 8f96bfc

Browse files
committed
Replace deprecated CMake Python modules
module FindPythonInterp was deprecated in 3.12. This patch replaces the deprecated CMake module with one of the suggested modules FindPython2. This new module looks only for version 2 of Python.
1 parent 1331ac5 commit 8f96bfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.4.3)
1+
cmake_minimum_required(VERSION 3.12.4)
22

33
# TODO: Fix RPATH usage to be CMP0068 compliant
44
# Disable Policy CMP0068 for CMake 3.9
@@ -881,7 +881,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
881881
endif()
882882
endif()
883883

884-
find_package(PythonInterp REQUIRED)
884+
find_package(Python2 COMPONENTS Interpreter REQUIRED)
885885

886886
#
887887
# Find optional dependencies.

0 commit comments

Comments
 (0)