summaryrefslogtreecommitdiffstats
path: root/Source/cmElseCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-30 18:56:06 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-30 18:56:06 (GMT)
commit2fb2207c1025f86cc5b62faf8c3a1ca15ea18152 (patch)
tree3238682d3b82c1a09285b0942b0e62ee390f0b08 /Source/cmElseCommand.cxx
parente7519358e748e66f88b7c277a6d59fff502dad4a (diff)
downloadCMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.zip
CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.gz
CMake-2fb2207c1025f86cc5b62faf8c3a1ca15ea18152.tar.bz2
bug fixes
Diffstat (limited to 'Source/cmElseCommand.cxx')
-rw-r--r--Source/cmElseCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmElseCommand.cxx b/Source/cmElseCommand.cxx
index bebee88..b905945 100644
--- a/Source/cmElseCommand.cxx
+++ b/Source/cmElseCommand.cxx
@@ -51,7 +51,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(cmSystemTools::IsOn(def))
+ if(!cmSystemTools::IsOff(def))
{
// add block
cmIfFunctionBlocker *f = new cmIfFunctionBlocker();