summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-08-12 21:08:35 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-08-12 21:12:08 (GMT)
commitac22e2a8790e507d7600e0876585424db70f785b (patch)
tree3e3ddc80afcb20287a28a41c515ac5803d82158b /Source/cmLocalVisualStudio7Generator.cxx
parent65ba6da57661dc50412929c9321268af77ecb59a (diff)
downloadCMake-ac22e2a8790e507d7600e0876585424db70f785b.zip
CMake-ac22e2a8790e507d7600e0876585424db70f785b.tar.gz
CMake-ac22e2a8790e507d7600e0876585424db70f785b.tar.bz2
VS9: Add include_directories to midl command lines
Makes VS 7, 8 and 9 generators consistent with the VS 10 generator. Adds the "AdditionalIncludeDirectories" attribute at the vcproj level so that all idl files inherit the /I command line args.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio7Generator.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.cxx b/Source/cmLocalVisualStudio7Generator.cxx
index 3e76f59..223e786 100644
--- a/Source/cmLocalVisualStudio7Generator.cxx
+++ b/Source/cmLocalVisualStudio7Generator.cxx
@@ -825,6 +825,13 @@ void cmLocalVisualStudio7Generator::WriteConfiguration(std::ostream& fout,
tool = "VFMIDLTool";
}
fout << "\t\t\t<Tool\n\t\t\t\tName=\"" << tool << "\"\n";
+ fout << "\t\t\t\tAdditionalIncludeDirectories=\"";
+ for(i = includes.begin(); i != includes.end(); ++i)
+ {
+ std::string ipath = this->ConvertToXMLOutputPath(i->c_str());
+ fout << ipath << ";";
+ }
+ fout << "\"\n";
fout << "\t\t\t\tMkTypLibCompatible=\"FALSE\"\n";
if( this->PlatformName == "x64" )
{