Kaynağa Gözat

Merge topic 'swift-mode-flags'

4d83e47c05 Swift: define `CMAKE_Swift_FLAGS` correctly

Acked-by: Kitware Robot <[email protected]>
Acked-by: Ben Boeckel <[email protected]>
Merge-request: !3684
Brad King 6 yıl önce
ebeveyn
işleme
e3746821df
1 değiştirilmiş dosya ile 2 ekleme ve 0 silme
  1. 2 0
      Modules/CMakeSwiftInformation.cmake

+ 2 - 0
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 ":")