From e1a91d7462c32ae4006e2502fe5f640d92bb1b38 Mon Sep 17 00:00:00 2001 From: Evan Wilde Date: Tue, 22 Jul 2025 16:26:17 -0700 Subject: [PATCH] CMake Build: Disable CMP0157 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. Disable CMP0157 for now. --- CMakeLists.txt | 4 ---- 1 file changed, 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f05387047..a32f17362 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)