summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2004-06-01 16:07:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2004-06-01 16:07:01 (GMT)
commit8d1a5c48e702ed24d343210639268777ba9fe8a3 (patch)
tree089315741339b39ee13cd04e1ae0d3595c6e6076 /Source/cmGlobalVisualStudio71Generator.cxx
parentb97ad900c09345343ed1e34067b9555f2e16b037 (diff)
downloadCMake-8d1a5c48e702ed24d343210639268777ba9fe8a3.zip
CMake-8d1a5c48e702ed24d343210639268777ba9fe8a3.tar.gz
CMake-8d1a5c48e702ed24d343210639268777ba9fe8a3.tar.bz2
BUG: fix for 871, include external should work for 7.1 and 7.0
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index bfcbe8c..5d3c19d 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -80,7 +80,7 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
cmTargets &tgts = generators[i]->GetMakefile()->GetTargets();
cmTargets::iterator l = tgts.begin();
for(std::vector<std::string>::iterator si = dspnames.begin();
- l != tgts.end(); ++l)
+ l != tgts.end() && si != dspnames.end(); ++l)
{
// special handling for the current makefile
if(mf == generators[0]->GetMakefile())
@@ -118,7 +118,7 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
// Write the project into the SLN file
if (strncmp(l->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) == 0)
{
- cmCustomCommand cc = l->second.GetPreLinkCommands()[0];
+ cmCustomCommand cc = l->second.GetPostBuildCommands()[0];
// dodgy use of the cmCustomCommand's members to store the
// arguments from the INCLUDE_EXTERNAL_MSPROJECT command
@@ -202,7 +202,7 @@ void cmGlobalVisualStudio71Generator::WriteSLNFile(std::ostream& fout,
cmTargets::iterator l = tgts.begin();
std::string dir = mf->GetStartDirectory();
for(std::vector<std::string>::iterator si = dspnames.begin();
- l != tgts.end(); ++l)
+ l != tgts.end() && si != dspnames.end(); ++l)
{
if ((l->second.GetType() != cmTarget::INSTALL_FILES)
&& (l->second.GetType() != cmTarget::INSTALL_PROGRAMS))