Skip to content

Commit 702a812

Browse files
authored
Merge pull request swiftlang#32496 from compnerd/you-shall-not-pass
build: remove workaround for python fallback
2 parents a0426df + c757d70 commit 702a812

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

CMakeLists.txt

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -899,13 +899,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
899899
endif()
900900

901901
find_package(Python2 COMPONENTS Interpreter REQUIRED)
902-
find_package(Python3 COMPONENTS Interpreter)
903-
if(NOT Python3_Interpreter_FOUND)
904-
message(WARNING "Python3 not found, using python2 as a fallback")
905-
add_executable(Python3::Interpreter IMPORTED)
906-
set_target_properties(Python3::Interpreter PROPERTIES
907-
IMPORTED_LOCATION ${Python2_EXECUTABLE})
908-
endif()
902+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
909903

910904
#
911905
# Find optional dependencies.

0 commit comments

Comments
 (0)