summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2007-03-12 14:26:59 (GMT)
committerKen Martin <ken.martin@kitware.com>2007-03-12 14:26:59 (GMT)
commitb99129d2d81a494055d40443e8e044c9db4ca807 (patch)
tree07cbf0e96e3cb1480e182f5bbbf860d2224beade /Source/cmGlobalGenerator.cxx
parentcf7eeab37aa644a0a09cb40e8958d99e8d771857 (diff)
downloadCMake-b99129d2d81a494055d40443e8e044c9db4ca807.zip
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.gz
CMake-b99129d2d81a494055d40443e8e044c9db4ca807.tar.bz2
ENH: some code cleanup
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 36d6fba..2b58f8b 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -1006,13 +1006,13 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
cmLocalGenerator* cur = gen->GetParent();
while(cur && cur != root)
{
- if(cur->GetExcludeAll())
+ if(cur->GetMakefile()->GetPropertyAsBool("EXCLUDE_FROM_ALL"))
{
return true;
}
cur = cur->GetParent();
}
- return gen->GetExcludeAll();
+ return gen->GetMakefile()->GetPropertyAsBool("EXCLUDE_FROM_ALL");
}
@@ -1359,7 +1359,7 @@ cmTarget cmGlobalGenerator::CreateGlobalTarget(
cmTarget target;
target.GetProperties().SetCMakeInstance(this->CMakeInstance);
target.SetType(cmTarget::GLOBAL_TARGET, name);
- target.SetInAll(false);
+ target.SetProperty("EXCLUDE_FROM_ALL","TRUE");
std::vector<std::string> no_outputs;
std::vector<std::string> no_depends;