diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 20:48:46 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2005-04-01 20:48:46 (GMT) |
commit | 86cebea79a1934bbd03f08dba884a965b7ae3b5d (patch) | |
tree | f547bb2c7fcbb981e908271db6811e45eb6015bd /Source/cmMakefile.cxx | |
parent | 6cd36d16e518822fd95e7d044cfe265bddf3bb07 (diff) | |
download | CMake-86cebea79a1934bbd03f08dba884a965b7ae3b5d.zip CMake-86cebea79a1934bbd03f08dba884a965b7ae3b5d.tar.gz CMake-86cebea79a1934bbd03f08dba884a965b7ae3b5d.tar.bz2 |
ENH: More ctest changes and move SetupTest to superclass
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index cd2fa9b..34d44e2 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1232,6 +1232,27 @@ bool cmMakefile::IsOn(const char* name) const return cmSystemTools::IsOn(value); } +bool cmMakefile::IsSet(const char* name) const +{ + const char* value = this->GetDefinition(name); + if ( !value ) + { + return false; + } + + if ( ! *value ) + { + return false; + } + + if ( cmSystemTools::IsNOTFOUND(value) ) + { + return false; + } + + return true; +} + const char* cmMakefile::GetRequiredDefinition(const char* name) const { const char* ret = this->GetDefinition(name); |