diff options
author | Ken Martin <ken.martin@kitware.com> | 2001-04-26 14:49:12 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2001-04-26 14:49:12 (GMT) |
commit | 6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95 (patch) | |
tree | f680c0e8c3f843514e620ceeeb09e0391653e4b7 /Source/cmElseCommand.cxx | |
parent | 30ad61805bbb5b34e2bf17cb36ce2e9601ed0f25 (diff) | |
download | CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.zip CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.tar.gz CMake-6e5af0e6ccbb0f2c0a4aec00003ea0ce68ea2f95.tar.bz2 |
some fixes for If commands
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r-- | Source/cmElseCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx index ff396fc..51e9f25 100644 --- a/Source/cmElseCommand.cxx +++ b/Source/cmElseCommand.cxx @@ -26,8 +26,7 @@ bool cmElseCommand::Invoke(std::vector<std::string>& args) // check to see if the argument is defined first const char *def = m_Makefile->GetDefinition(args[0].c_str()); - if(def && strcmp(def,"0") && strcmp(def,"false") && strcmp(def,"") && - strcmp(def,"NOTFOUND")) + if(cmSystemTools::IsOn(def)) { // add block cmIfFunctionBlocker *f = new cmIfFunctionBlocker(); |