diff options
author | Brad King <brad.king@kitware.com> | 2019-02-15 14:59:44 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-02-15 15:00:21 (GMT) |
commit | f2dc10d55c24d1714d65ce990a8e7658d92d2e14 (patch) | |
tree | 4fa1ca2ac013e5b284d978c4fa48b604a616819d /Source/cmNinjaTargetGenerator.cxx | |
parent | 3c9c91a360104b97aa6ad27934ff7603c862a2f7 (diff) | |
parent | 157570b5a2d3135e2d83f9bd2865ad666a709499 (diff) | |
download | CMake-f2dc10d55c24d1714d65ce990a8e7658d92d2e14.zip CMake-f2dc10d55c24d1714d65ce990a8e7658d92d2e14.tar.gz CMake-f2dc10d55c24d1714d65ce990a8e7658d92d2e14.tar.bz2 |
Merge topic 'ninja-swift-library-name'
157570b5a2 Add placeholder for Swift's library name
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2902
Diffstat (limited to 'Source/cmNinjaTargetGenerator.cxx')
-rw-r--r-- | Source/cmNinjaTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmNinjaTargetGenerator.cxx b/Source/cmNinjaTargetGenerator.cxx index 998729f..8d2586d 100644 --- a/Source/cmNinjaTargetGenerator.cxx +++ b/Source/cmNinjaTargetGenerator.cxx @@ -454,6 +454,7 @@ void cmNinjaTargetGenerator::WriteCompileRule(const std::string& lang) if (lang == "Swift") { vars.SwiftAuxiliarySources = "$SWIFT_AUXILIARY_SOURCES"; vars.SwiftModuleName = "$SWIFT_MODULE_NAME"; + vars.SwiftLibraryName = "$SWIFT_LIBRARY_NAME"; } // For some cases we do an explicit preprocessor invocation. @@ -940,6 +941,10 @@ void cmNinjaTargetGenerator::WriteObjectBuildStatement( } else { vars["SWIFT_MODULE_NAME"] = this->GeneratorTarget->GetName(); } + + cmGeneratorTarget::Names targetNames = + this->GeneratorTarget->GetLibraryNames(this->GetConfigName()); + vars["SWIFT_LIBRARY_NAME"] = targetNames.Base; } if (!this->NeedDepTypeMSVC(language)) { |