summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-04-22 20:58:04 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-04-22 20:58:04 (GMT)
commit7b576866b78ae1c6ba5dfc180d4b4f4b64f48872 (patch)
tree5d229cb06dc5183729564fd3830e01b06e60d182 /Source/cmLocalVisualStudio7Generator.cxx
parent8ba5612136d6d37db1abec8041be9dad2b834949 (diff)
downloadCMake-7b576866b78ae1c6ba5dfc180d4b4f4b64f48872.zip
CMake-7b576866b78ae1c6ba5dfc180d4b4f4b64f48872.tar.gz
CMake-7b576866b78ae1c6ba5dfc180d4b4f4b64f48872.tar.bz2
ENH: add support for static library property STATIC_LIBRARY_FLAGS
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 29ae364..987917e 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -534,8 +534,12 @@ void cmLocalVisualStudio7Generator::OutputBuildTool(std::ostream& fout,
std::string libpath = m_LibraryOutputPath +
"$(OutDir)/" + libName + debugPostfix + ".lib";
fout << "\t\t\t<Tool\n"
- << "\t\t\t\tName=\"VCLibrarianTool\"\n"
- << "\t\t\t\t\tOutputFile=\""
+ << "\t\t\t\tName=\"VCLibrarianTool\"\n";
+ if(const char* libflags = target.GetProperty("STATIC_LIBRARY_FLAGS"))
+ {
+ fout << "\t\t\t\tAdditionalOptions=\"" << libflags << "\"\n";
+ }
+ fout << "\t\t\t\tOutputFile=\""
<< this->ConvertToXMLOutputPathSingle(libpath.c_str()) << ".\"/>\n";
break;
}