We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 853b681 + 01576d7 commit db6474aCopy full SHA for db6474a
CMakeLists.txt
@@ -22,8 +22,15 @@ if(POLICY CMP0156)
22
endif()
23
24
if(POLICY CMP0157)
25
- # New Swift build model: improved incremental build performance and LSP support
26
- cmake_policy(SET CMP0157 NEW)
+ if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND CMAKE_SYSTEM_NAME STREQUAL Android)
+ # CMP0157 causes swift-collections to fail to compile when targetting
27
+ # Android on Windows due to swift-driver not being present during the
28
+ # toolchain build. Disable it for now.
29
+ cmake_policy(SET CMP0157 OLD)
30
+ else()
31
+ # New Swift build model: improved incremental build performance and LSP support
32
+ cmake_policy(SET CMP0157 NEW)
33
+ endif()
34
35
36
if (NOT DEFINED CMAKE_C_COMPILER)
0 commit comments