diff options
author | Brad King <brad.king@kitware.com> | 2019-07-15 11:41:43 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-07-15 11:41:52 (GMT) |
commit | d7e53b427428bc23778d1b094e8893df4573e22e (patch) | |
tree | e0a3870052ce31b0ecac6c0dc4631684d22d62f6 /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | a92b7fd46bcf1ecd255290d84c691a244c8ecb26 (diff) | |
parent | 7ff9ab3b101b131bd4a91a459f66ce27f97f4757 (diff) | |
download | CMake-d7e53b427428bc23778d1b094e8893df4573e22e.zip CMake-d7e53b427428bc23778d1b094e8893df4573e22e.tar.gz CMake-d7e53b427428bc23778d1b094e8893df4573e22e.tar.bz2 |
Merge topic 'cleanup-gen-lookups'
7ff9ab3b10 Makefile: De-duplicate executable link rule lookup
79f5ef19fe De-duplicate checks for whether a platform uses Windows DLLs
22d3eb5d5e Refactor checks for whether a target has an import library
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3550
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index dcee47e..a7f2a97 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -483,9 +483,8 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) // Construct the main link rule. std::vector<std::string> real_link_commands; - std::string linkRuleVar = "CMAKE_"; - linkRuleVar += linkLanguage; - linkRuleVar += "_LINK_EXECUTABLE"; + std::string linkRuleVar = this->GeneratorTarget->GetCreateRuleVariable( + linkLanguage, this->ConfigName); std::string linkRule = this->GetLinkRule(linkRuleVar); std::vector<std::string> commands1; cmSystemTools::ExpandListArgument(linkRule, real_link_commands); |