diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2020-03-07 18:15:29 (GMT) |
---|---|---|
committer | Kyle Edwards <kyle.edwards@kitware.com> | 2020-03-09 13:11:22 (GMT) |
commit | 65b3848de0ae6251858dd12c97bff8110cb845f1 (patch) | |
tree | 43a7c665fd2fb3345673f8004fd80fd67ce7cade /Source/cmNinjaNormalTargetGenerator.cxx | |
parent | 6857aaaa062f3526fc54438472fe676bcda5842e (diff) | |
download | CMake-65b3848de0ae6251858dd12c97bff8110cb845f1.zip CMake-65b3848de0ae6251858dd12c97bff8110cb845f1.tar.gz CMake-65b3848de0ae6251858dd12c97bff8110cb845f1.tar.bz2 |
Swift: support Ninja Multi-Config
Enable support for multi-configuration builds using Ninja when building
Swift.
Diffstat (limited to 'Source/cmNinjaNormalTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaNormalTargetGenerator.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmNinjaNormalTargetGenerator.cxx b/Source/cmNinjaNormalTargetGenerator.cxx index 0a6da91..885703f 100644 --- a/Source/cmNinjaNormalTargetGenerator.cxx +++ b/Source/cmNinjaNormalTargetGenerator.cxx @@ -873,11 +873,11 @@ void cmNinjaNormalTargetGenerator::WriteLinkStatement( cmOutputConverter::SHELL); }(vars["SWIFT_MODULE_NAME"]); + const std::string map = cmStrCat(gt->GetSupportDirectory(), '/', config, + '/', "output-file-map.json"); vars["SWIFT_OUTPUT_FILE_MAP"] = this->GetLocalGenerator()->ConvertToOutputFormat( - this->ConvertToNinjaPath(gt->GetSupportDirectory() + - "/output-file-map.json"), - cmOutputConverter::SHELL); + this->ConvertToNinjaPath(map), cmOutputConverter::SHELL); vars["SWIFT_SOURCES"] = [this, config]() -> std::string { std::vector<cmSourceFile const*> sources; |