summaryrefslogtreecommitdiffstats
path: root/Source/cmNinjaTargetGenerator.cxx
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2020-03-07 18:15:29 (GMT)
committerKyle Edwards <kyle.edwards@kitware.com>2020-03-09 13:11:22 (GMT)
commit65b3848de0ae6251858dd12c97bff8110cb845f1 (patch)
tree43a7c665fd2fb3345673f8004fd80fd67ce7cade /Source/cmNinjaTargetGenerator.cxx
parent6857aaaa062f3526fc54438472fe676bcda5842e (diff)
downloadCMake-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/cmNinjaTargetGenerator.cxx')
-rw-r--r--Source/cmNinjaTargetGenerator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx
index 0e74678..abf12f8 100644
--- a/Source/cmNinjaTargetGenerator.cxx
+++ b/Source/cmNinjaTargetGenerator.cxx
@@ -953,7 +953,8 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatements(
if (!this->Configs[config].SwiftOutputMap.empty()) {
std::string const mapFilePath =
- this->GeneratorTarget->GetSupportDirectory() + "/output-file-map.json";
+ cmStrCat(this->GeneratorTarget->GetSupportDirectory(), '/', config, '/',
+ "output-file-map.json");
std::string const targetSwiftDepsPath = [this, config]() -> std::string {
cmGeneratorTarget const* target = this->GeneratorTarget;
if (const char* name = target->GetProperty("Swift_DEPENDENCIES_FILE")) {