Skip to content

Commit d79c573

Browse files
authored
CMake Build: Disable CMP0157 (#387)
There is a bug in CMake CMP0157 where if library A depends on a non-Swift library B, which in turns depends on a Swift library C, library A will depend on a swiftmodule for B. B doesn't have a swiftmodule, so the build fails. Currently hitting the following error on Windows CI: `ninja: error: 'swift/CCryptoBoringSSL.swiftmodule', needed by 'lib/libCCryptoBoringSSLShims.lib', missing and no known rule to make it` Disabling CMP0157 for now.
1 parent ebcbfc6 commit d79c573

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414

1515
cmake_minimum_required(VERSION 3.15.1)
1616

17-
if(POLICY CMP0157)
18-
cmake_policy(SET CMP0157 NEW)
19-
endif()
20-
2117
project(SwiftCrypto
2218
LANGUAGES ASM C CXX Swift)
2319

0 commit comments

Comments
 (0)