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/cmIfCommand.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/cmIfCommand.cxx')
-rw-r--r-- | Source/cmIfCommand.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx index 5dab24b..0701ee2 100644 --- a/Source/cmIfCommand.cxx +++ b/Source/cmIfCommand.cxx @@ -48,8 +48,7 @@ bool cmIfCommand::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)) { // do nothing } |