diff options
author | Patrick Gansterer <paroga@paroga.com> | 2013-04-07 15:39:05 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-31 12:41:07 (GMT) |
commit | 2a43c306fe434b87b087586c2e45d3e1fbe56d33 (patch) | |
tree | ecfa49845d1521177fde63d156b4a37755d602fa /Source/cmLocalGenerator.cxx | |
parent | 14bbf8340ac4d285b61afb5b61ebc4c730f4b4fa (diff) | |
download | CMake-2a43c306fe434b87b087586c2e45d3e1fbe56d33.zip CMake-2a43c306fe434b87b087586c2e45d3e1fbe56d33.tar.gz CMake-2a43c306fe434b87b087586c2e45d3e1fbe56d33.tar.bz2 |
Add support for CMAKE_STATIC_LINKER_FLAGS
Add the content of this variable to the target specific linker flags
as we do with the other CMAKE_*_LINKER_FLAGS variables already.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 75ff7b3..b515727 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1545,6 +1545,13 @@ void cmLocalGenerator::GetStaticLibraryFlags(std::string& flags, std::string const& config, cmTarget* target) { + this->AppendFlags(flags, + this->Makefile->GetSafeDefinition("CMAKE_STATIC_LINKER_FLAGS")); + if(!config.empty()) + { + std::string name = "CMAKE_STATIC_LINKER_FLAGS_" + config; + this->AppendFlags(flags, this->Makefile->GetSafeDefinition(name.c_str())); + } this->AppendFlags(flags, target->GetProperty("STATIC_LIBRARY_FLAGS")); if(!config.empty()) { |