summaryrefslogtreecommitdiffstats
path: root/Source/cmIfCommand.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2002-10-07 13:16:31 (GMT)
committerKen Martin <ken.martin@kitware.com>2002-10-07 13:16:31 (GMT)
commit2cf6730def50ea33360ecdaebb098fec4635529e (patch)
tree1918dbee4e64664e5718b69a378167787700fa09 /Source/cmIfCommand.cxx
parentd5296aa85a6fe79da2154e447cf65d9b1dfa28d0 (diff)
downloadCMake-2cf6730def50ea33360ecdaebb098fec4635529e.zip
CMake-2cf6730def50ea33360ecdaebb098fec4635529e.tar.gz
CMake-2cf6730def50ea33360ecdaebb098fec4635529e.tar.bz2
minor fix to allow if with no arguments
Diffstat (limited to 'Source/cmIfCommand.cxx')
-rw-r--r--Source/cmIfCommand.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 7baba12..cb8134f 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -134,6 +134,7 @@ bool cmIfCommand::IsTrue(const std::vector<std::string> &args, bool &isValid,
if(args.size() < 1 )
{
+ isValid = true;
return false;
}