diff options
author | Brad King <brad.king@kitware.com> | 2019-08-19 19:08:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-08-19 19:08:22 (GMT) |
commit | e3746821dfc37c8514c934e1e5d62d0ec99adc9f (patch) | |
tree | bc1983a2c2fdd4f95c935da410656e421db2f841 /Modules/CMakeSwiftInformation.cmake | |
parent | 5f7386dd19c27690a1187a69f0861faf51899264 (diff) | |
parent | 4d83e47c054ceb1d3b9a7ae5f2f385e1632675c6 (diff) | |
download | CMake-e3746821dfc37c8514c934e1e5d62d0ec99adc9f.zip CMake-e3746821dfc37c8514c934e1e5d62d0ec99adc9f.tar.gz CMake-e3746821dfc37c8514c934e1e5d62d0ec99adc9f.tar.bz2 |
Merge topic 'swift-mode-flags'
4d83e47c05 Swift: define `CMAKE_Swift_FLAGS` correctly
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !3684
Diffstat (limited to 'Modules/CMakeSwiftInformation.cmake')
-rw-r--r-- | Modules/CMakeSwiftInformation.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CMakeSwiftInformation.cmake b/Modules/CMakeSwiftInformation.cmake index f22205c..4f1d4f0 100644 --- a/Modules/CMakeSwiftInformation.cmake +++ b/Modules/CMakeSwiftInformation.cmake @@ -56,6 +56,8 @@ set(CMAKE_Swift_FLAGS_RELEASE_INIT "-O") set(CMAKE_Swift_FLAGS_RELWITHDEBINFO_INIT "-O -g") set(CMAKE_Swift_FLAGS_MINSIZEREL_INIT "-Osize") +cmake_initialize_per_config_variable(CMAKE_Swift_FLAGS "Swift Compiler Flags") + # NOTE(compnerd) we do not have an object compile rule since we build the objects as part of the link step if(NOT CMAKE_Swift_COMPILE_OBJECT) set(CMAKE_Swift_COMPILE_OBJECT ":") |