From d79c573e1b400d670ed12c0cb29d33f2c0f5ab70 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Wed, 23 Jul 2025 01:26:08 -0700 Subject: [PATCH] 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. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0538704..a32f1736 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -14,10 +14,6 @@ cmake_minimum_required(VERSION 3.15.1) -if(POLICY CMP0157) - cmake_policy(SET CMP0157 NEW) -endif() - project(SwiftCrypto LANGUAGES ASM C CXX Swift)