summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-09-15 19:15:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-09-15 19:15:46 (GMT)
commit444dbd33095675b6fda7e3f806b3890aa7afffbd (patch)
treec36ac8686e6465ec2a0cd408fbdab2aba32ef42e /Source/cmGlobalVisualStudio71Generator.cxx
parentf545c5149fbc2034ca057cbb8a6e0823797a6c2c (diff)
downloadCMake-444dbd33095675b6fda7e3f806b3890aa7afffbd.zip
CMake-444dbd33095675b6fda7e3f806b3890aa7afffbd.tar.gz
CMake-444dbd33095675b6fda7e3f806b3890aa7afffbd.tar.bz2
BUG: fix external project command for VS 7 and 71
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx40
1 files changed, 40 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index 814a0a1..eee6a4b 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -302,6 +302,46 @@ void cmGlobalVisualStudio71Generator::WriteProjectDepends(std::ostream& fout,
}
}
+// Write a dsp file into the SLN file,
+// Note, that dependencies from executables to
+// the libraries it uses are also done here
+void cmGlobalVisualStudio71Generator::WriteExternalProject(std::ostream& fout,
+ const char* name,
+ const char* location,
+ const std::vector<std::string>& depends)
+{
+ std::string d = cmSystemTools::ConvertToOutputPath(location);
+ fout << "Project(\"{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}\") = \""
+ << name << "\", \""
+ << d << "\", \"{"
+ << this->GetGUID(name)
+ << "}\"\n";
+
+ // write out the dependencies here
+ // VS 7.1 includes dependencies with the project instead of in the global section
+ if(!depends.empty())
+ {
+ fout << "\tProjectSection(ProjectDependencies) = postProject\n";
+ std::vector<std::string>::const_iterator it;
+ for(it = depends.begin(); it != depends.end(); ++it)
+ {
+ if(it->size() > 0)
+ {
+ fout << "\t\t{"
+ << this->GetGUID(it->c_str())
+ << "} = {"
+ << this->GetGUID(it->c_str())
+ << "}\n";
+ }
+ }
+ fout << "\tEndProjectSection\n";
+ }
+
+ fout << "EndProject\n";
+
+
+}
+
// Write a dsp file into the SLN file,
// Note, that dependencies from executables to