mirror of
https://github.com/apple/swift-certificates
synced 2026-11-22 04:20:39 +00:00
[CMake] Require CMake 3.29 and drop the CMP0157 checks (#325)
Follow-up to #324: require CMake 3.29 instead of checking for CMP0157, and leave `CMAKE_Swift_COMPILATION_MODE` to the caller. The toolchain build passes it (swiftlang/swift#94066). Tracking: swiftlang/swift#93995 assisted by Claude Co-authored-by: Cory Benfield <lukasa@apple.com>
This commit is contained in:
1 parent
8d6849435f
commit
ac5e08be49
2 files changed
+2
-9
No files matched your search
@@ -43,6 +43,7 @@ jobs:
|
||||
name: Check cmake lists
|
||||
uses: apple/swift-nio/.github/workflows/cmake_tests.yml@main
|
||||
with:
|
||||
cmake_version: "3.29.6"
|
||||
update_cmake_lists_config: >-
|
||||
{
|
||||
"targets": [
|
||||
|
||||
+1
-9
@@ -12,19 +12,11 @@
|
||||
##
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
cmake_minimum_required(VERSION 3.19)
|
||||
|
||||
if(POLICY CMP0157)
|
||||
cmake_policy(SET CMP0157 NEW)
|
||||
endif()
|
||||
cmake_minimum_required(VERSION 3.29)
|
||||
|
||||
project(SwiftCertificates
|
||||
LANGUAGES Swift)
|
||||
|
||||
if(POLICY CMP0157 AND PROJECT_IS_TOP_LEVEL)
|
||||
set(CMAKE_Swift_COMPILATION_MODE "$<IF:$<CONFIG:Release,RelWithDebInfo,MinSizeRel>,wholemodule,incremental>")
|
||||
endif()
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules)
|
||||
|
||||
include(SwiftSupport)
|
||||
|
||||
Reference in new issue
Block a user