Files
CMake/Tests/RunCMake/Swift/CMP0157-NEW.cmake
Evan Wilde c1d787e473 Swift: Add abstraction for compilation mode
Add a `CMAKE_Swift_COMPILATION_MODE` variable and corresponding
`Swift_COMPILATION_MODE` target property to control the compilation
mode.  Select among `wholemodule`, `singlefile`, and `incremental`.

Add policy CMP0157 to remove the default `-wmo` flags in favor of the
abstract setting.

Issue: #25366
2023-11-17 08:43:21 -05:00

5 lines
98 B
CMake

cmake_minimum_required(VERSION 3.28)
cmake_policy(SET CMP0157 NEW)
include(CMP0157-common.cmake)