diff options
author | Patrick Gansterer <paroga@paroga.com> | 2013-07-10 17:11:04 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2013-07-31 12:41:07 (GMT) |
commit | 14bbf8340ac4d285b61afb5b61ebc4c730f4b4fa (patch) | |
tree | f8ee4cb65582a6135748647e7830d28e66fc30d0 /Source/cmLocalVisualStudio7Generator.cxx | |
parent | 8d3b65346f112d2d21efd3105f4d1535adc2935e (diff) | |
download | CMake-14bbf8340ac4d285b61afb5b61ebc4c730f4b4fa.zip CMake-14bbf8340ac4d285b61afb5b61ebc4c730f4b4fa.tar.gz CMake-14bbf8340ac4d285b61afb5b61ebc4c730f4b4fa.tar.bz2 |
Unify the way the flags of a static library are read
Introduce cmLocalGenerator::GetStaticLibraryFlags() to have a central
function for getting the linker flags for a given target.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 9ecd53d..672edf4 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -1039,17 +1039,7 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout, } } std::string libflags; - if(const char* flags = target.GetProperty("STATIC_LIBRARY_FLAGS")) - { - libflags += flags; - } - std::string libFlagsConfig = "STATIC_LIBRARY_FLAGS_"; - libFlagsConfig += configTypeUpper; - if(const char* flagsConfig = target.GetProperty(libFlagsConfig.c_str())) - { - libflags += " "; - libflags += flagsConfig; - } + this->GetStaticLibraryFlags(libflags, configTypeUpper, &target); if(!libflags.empty()) { fout << "\t\t\t\tAdditionalOptions=\"" << libflags << "\"\n"; |