Skip to content

Commit 01576d7

Browse files
committed
Set CMP0157 to OLD only for Windows hosts
1 parent a563ace commit 01576d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ if(POLICY CMP0156)
2222
endif()
2323

2424
if(POLICY CMP0157)
25-
if(CMAKE_SYSTEM_NAME STREQUAL Android)
25+
if(CMAKE_HOST_SYSTEM_NAME STREQUAL Windows AND CMAKE_SYSTEM_NAME STREQUAL Android)
2626
# CMP0157 causes swift-collections to fail to compile when targetting
2727
# Android on Windows due to swift-driver not being present during the
2828
# toolchain build. Disable it for now.

0 commit comments

Comments
 (0)