mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
[CMake] Require CMake 3.29 and drop the CMP0157 checks
This commit is contained in:
1 parent
9b328ecb94
commit
87134207c5
1 file changed
+1
-9
+1
-9
@@ -11,19 +11,11 @@
|
||||
##
|
||||
##===----------------------------------------------------------------------===##
|
||||
|
||||
cmake_minimum_required(VERSION 3.16)
|
||||
|
||||
if(POLICY CMP0157)
|
||||
cmake_policy(SET CMP0157 NEW)
|
||||
endif()
|
||||
cmake_minimum_required(VERSION 3.29)
|
||||
|
||||
project(SwiftCollections
|
||||
LANGUAGES C 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 ${PROJECT_SOURCE_DIR}/cmake/modules)
|
||||
|
||||
if(NOT SWIFT_SYSTEM_NAME)
|
||||
|
||||
Reference in new issue
Block a user