diff options
author | Brad King <brad.king@kitware.com> | 2010-05-28 14:45:54 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-05-28 15:09:10 (GMT) |
commit | fe971d97cae4df94d3643c5203b79336cfd31e05 (patch) | |
tree | 2eac2264fe3b44bd915535ba081c2e119999818b /Source/cmLocalVisualStudio7Generator.cxx | |
parent | d3303dbc8130988be63b9dda913eb9af9770edeb (diff) | |
download | CMake-fe971d97cae4df94d3643c5203b79336cfd31e05.zip CMake-fe971d97cae4df94d3643c5203b79336cfd31e05.tar.gz CMake-fe971d97cae4df94d3643c5203b79336cfd31e05.tar.bz2 |
Add STATIC_LIBRARY_FLAGS_<CONFIG> property (#10768)
This is a per-configuration version of STATIC_LIBRARY_FLAGS.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudio7Generator.cxx | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx index 2d8197c..136c177 100644 --- a/Source/cmLocalVisualStudio7Generator.cxx +++ b/Source/cmLocalVisualStudio7Generator.cxx @@ -915,7 +915,20 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout, } fout << "\t\t\t<Tool\n" << "\t\t\t\tName=\"" << tool << "\"\n"; - if(const char* libflags = target.GetProperty("STATIC_LIBRARY_FLAGS")) + + 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; + } + if(!libflags.empty()) { fout << "\t\t\t\tAdditionalOptions=\"" << libflags << "\"\n"; } |