diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-07-08 11:02:15 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-07-08 11:48:42 (GMT) |
commit | 8a93de080c7c053237b3f34bc4f8312434e524bf (patch) | |
tree | 2e794eb901672318ca1fcd2c4f2ab153054f4a3e /Source/cmGeneratorTarget.cxx | |
parent | 33d6ba668f2977fb5fcb038df2b31df7446fd678 (diff) | |
download | CMake-8a93de080c7c053237b3f34bc4f8312434e524bf.zip CMake-8a93de080c7c053237b3f34bc4f8312434e524bf.tar.gz CMake-8a93de080c7c053237b3f34bc4f8312434e524bf.tar.bz2 |
cmGeneratorTarget: Add method for LINKER: prefix translation
Diffstat (limited to 'Source/cmGeneratorTarget.cxx')
-rw-r--r-- | Source/cmGeneratorTarget.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmGeneratorTarget.cxx b/Source/cmGeneratorTarget.cxx index f035bd0..300c13b 100644 --- a/Source/cmGeneratorTarget.cxx +++ b/Source/cmGeneratorTarget.cxx @@ -4461,6 +4461,13 @@ std::vector<BT<std::string>> cmGeneratorTarget::GetLinkOptions( // Last step: replace "LINKER:" prefixed elements by // actual linker wrapper + return this->ResolveLinkerWrapper(result, language); +} + +std::vector<BT<std::string>>& cmGeneratorTarget::ResolveLinkerWrapper( + std::vector<BT<std::string>>& result, const std::string& language) const +{ + // replace "LINKER:" prefixed elements by actual linker wrapper const std::string wrapper(this->Makefile->GetSafeDefinition( "CMAKE_" + language + (this->IsDeviceLink() ? "_DEVICE_LINKER_WRAPPER_FLAG" |