Skip to content

Commit 2a977f0

Browse files
authored
Merge pull request #30753 from RLovelett/replace-deprecated-cmake-python-modules
Improve CMake Python Detection
2 parents 368d66a + 8f96bfc commit 2a977f0

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)