summaryrefslogtreecommitdiffstats
path: root/Source/cmTarget.h
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2007-02-23 14:46:27 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2007-02-23 14:46:27 (GMT)
commit8ad343093179035fa8ad9136e8e8f72fc3804dd2 (patch)
tree35c34abc3af73da857cffea26f0c4eeb2872369b /Source/cmTarget.h
parent440bbf08711e9a784f90f1d2541e5d204807161a (diff)
downloadCMake-8ad343093179035fa8ad9136e8e8f72fc3804dd2.zip
CMake-8ad343093179035fa8ad9136e8e8f72fc3804dd2.tar.gz
CMake-8ad343093179035fa8ad9136e8e8f72fc3804dd2.tar.bz2
ENH: Make EXCLUDE_FROM_ALL a target and directory properties. Also, make IsInAll use EXCLUDE_FROM_ALL. Also, enable the test that tests this
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r--Source/cmTarget.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h
index de216f3..e12870b 100644
--- a/Source/cmTarget.h
+++ b/Source/cmTarget.h
@@ -60,10 +60,10 @@ public:
/**
* Indicate whether the target is part of the all target
*/
- bool IsInAll() { return this->GetPropertyAsBool("IN_ALL"); }
- bool GetInAll() { return this->GetPropertyAsBool("IN_ALL"); }
+ bool IsInAll() { return !this->GetPropertyAsBool("EXCLUDE_FROM_ALL"); }
+ bool GetInAll() { return !this->GetPropertyAsBool("EXCLUDE_FROM_ALL"); }
void SetInAll(bool f) {
- this->SetProperty("IN_ALL", (f) ?"TRUE" : "FALSE"); }
+ this->SetProperty("EXCLUDE_FROM_ALL", (f) ?"FALSE" : "TRUE"); }
///! Set the cmMakefile that owns this target
void SetMakefile(cmMakefile *mf);