summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorTarget.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-07-08 11:02:15 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-07-08 11:48:42 (GMT)
commit8a93de080c7c053237b3f34bc4f8312434e524bf (patch)
tree2e794eb901672318ca1fcd2c4f2ab153054f4a3e /Source/cmGeneratorTarget.cxx
parent33d6ba668f2977fb5fcb038df2b31df7446fd678 (diff)
downloadCMake-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.cxx7
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"