We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f883ca6 commit 39ddc67Copy full SHA for 39ddc67
cmake/modules/StandaloneOverlay.cmake
@@ -115,6 +115,14 @@ include(SwiftConfigureSDK)
115
include(SwiftComponents)
116
include(DarwinSDKs)
117
118
+find_package(Python2 COMPONENTS Interpreter REQUIRED)
119
+find_package(Python3 COMPONENTS Interpreter)
120
+if(NOT Python3_Interpreter_FOUND)
121
+ message(WARNING "Python3 not found, using python2 as a fallback")
122
+ add_executable(Python3::Interpreter IMPORTED)
123
+ set_target_properties(Python3::Interpreter PROPERTIES
124
+ IMPORTED_LOCATION ${Python2_EXECUTABLE})
125
+endif()
126
127
# Without this line, installing components is broken. This needs refactoring.
128
swift_configure_components()
0 commit comments