diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-08-12 00:57:16 (GMT) |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2019-08-12 00:59:52 (GMT) |
commit | 4d83e47c054ceb1d3b9a7ae5f2f385e1632675c6 (patch) | |
tree | 9008dd597a7cdcc447959d79ce54e8fcc5863bf3 /Modules | |
parent | 70c56b856c2341837613a4f5e55b32b857a02456 (diff) | |
download | CMake-4d83e47c054ceb1d3b9a7ae5f2f385e1632675c6.zip CMake-4d83e47c054ceb1d3b9a7ae5f2f385e1632675c6.tar.gz CMake-4d83e47c054ceb1d3b9a7ae5f2f385e1632675c6.tar.bz2 |
Swift: define `CMAKE_Swift_FLAGS` correctly
Invoke `cmake_initialize_per_config_variable` to ensure that build type
flags are properly initialised.
Diffstat (limited to 'Modules')
-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 54e441c..6dd614b 100644 --- a/Modules/CMakeSwiftInformation.cmake +++ b/Modules/CMakeSwiftInformation.cmake @@ -55,6 +55,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 ":") |