diff options
author | Stephen Kelly <steveire@gmail.com> | 2016-10-06 20:25:44 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-10-07 12:42:25 (GMT) |
commit | 0f1fedbd6a298cf9af2f36577cc66c4ee167be3d (patch) | |
tree | 6cbfd061ed6d164e150f032ff70697582af68d2b /Source/cmMakefileExecutableTargetGenerator.cxx | |
parent | 7f1cd3280cf484b5d565a12ae57022de018faa57 (diff) | |
download | CMake-0f1fedbd6a298cf9af2f36577cc66c4ee167be3d.zip CMake-0f1fedbd6a298cf9af2f36577cc66c4ee167be3d.tar.gz CMake-0f1fedbd6a298cf9af2f36577cc66c4ee167be3d.tar.bz2 |
CMP0065: Put computed flags into LINK_FLAGS not LINK_LIBRARIES
These flags are redundant anyway in the NEW case of the policy, and
could be merged with CMAKE_EXE_EXPORTS_${lang}_FLAG content for that
case. That is deferred to the future, but now at least the similar code
is located close to each other.
Diffstat (limited to 'Source/cmMakefileExecutableTargetGenerator.cxx')
-rw-r--r-- | Source/cmMakefileExecutableTargetGenerator.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefileExecutableTargetGenerator.cxx b/Source/cmMakefileExecutableTargetGenerator.cxx index cb20117..42e12ad 100644 --- a/Source/cmMakefileExecutableTargetGenerator.cxx +++ b/Source/cmMakefileExecutableTargetGenerator.cxx @@ -192,6 +192,11 @@ void cmMakefileExecutableTargetGenerator::WriteExecutableRule(bool relink) this->LocalGenerator->AppendFlags( linkFlags, this->Makefile->GetDefinition(export_flag_var)); } + + this->LocalGenerator->AppendFlags(linkFlags, + this->LocalGenerator->GetLinkLibsCMP0065( + linkLanguage, *this->GeneratorTarget)); + if (this->GeneratorTarget->GetProperty("LINK_WHAT_YOU_USE")) { this->LocalGenerator->AppendFlags(linkFlags, " -Wl,--no-as-needed"); } |