summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2009-07-14 18:16:46 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2009-07-14 18:16:46 (GMT)
commit3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78 (patch)
tree7f54a15847997cffa6979fb9267263a01029cd48 /Source/cmLocalGenerator.cxx
parentb23b1800a586b0afb316f92d9bde82896c804ef5 (diff)
downloadCMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.zip
CMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.tar.gz
CMake-3d1c12b802c3dd3a0284f5f10aec3b98ab6d3a78.tar.bz2
ENH: remove INCLUDE_EXTERNAL_MSPROJECT name hack, and use target properties instead, fix VXExternalInclude test for VS10
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r--Source/cmLocalGenerator.cxx13
1 files changed, 4 insertions, 9 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx
index c6fd8db..67fa280 100644
--- a/Source/cmLocalGenerator.cxx
+++ b/Source/cmLocalGenerator.cxx
@@ -193,17 +193,12 @@ void cmLocalGenerator::TraceDependencies()
cmTargets& targets = this->Makefile->GetTargets();
for(cmTargets::iterator t = targets.begin(); t != targets.end(); ++t)
{
- // INCLUDE_EXTERNAL_MSPROJECT command only affects the workspace
- // so don't build a projectfile for it
- if (strncmp(t->first.c_str(), "INCLUDE_EXTERNAL_MSPROJECT", 26) != 0)
+ const char* projectFilename = 0;
+ if (this->IsMakefileGenerator == false) // only use of this variable
{
- const char* projectFilename = 0;
- if (this->IsMakefileGenerator == false) // only use of this variable
- {
- projectFilename = t->second.GetName();
- }
- t->second.TraceDependencies(projectFilename);
+ projectFilename = t->second.GetName();
}
+ t->second.TraceDependencies(projectFilename);
}
}