Skip to content

Commit c757d70

Browse files
committed
build: remove workaround for python fallback
This forces the python3 interpreter to be found and no longer permits the use of Python2 as a fallback if python3 is not found.
1 parent 09141ce commit c757d70

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
@@ -894,13 +894,7 @@ if(NOT CMAKE_SYSTEM_NAME STREQUAL "Darwin")
894894
endif()
895895

896896
find_package(Python2 COMPONENTS Interpreter REQUIRED)
897-
find_package(Python3 COMPONENTS Interpreter)
898-
if(NOT Python3_Interpreter_FOUND)
899-
message(WARNING "Python3 not found, using python2 as a fallback")
900-
add_executable(Python3::Interpreter IMPORTED)
901-
set_target_properties(Python3::Interpreter PROPERTIES
902-
IMPORTED_LOCATION ${Python2_EXECUTABLE})
903-
endif()
897+
find_package(Python3 COMPONENTS Interpreter REQUIRED)
904898

905899
#
906900
# Find optional dependencies.

0 commit comments

Comments
 (0)