summaryrefslogtreecommitdiffstats
path: root/Source/cmOptionCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmOptionCommand.cxx')
-rw-r--r--Source/cmOptionCommand.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmOptionCommand.cxx b/Source/cmOptionCommand.cxx
index 0c70411..8f2bd66 100644
--- a/Source/cmOptionCommand.cxx
+++ b/Source/cmOptionCommand.cxx
@@ -69,9 +69,7 @@ bool cmOptionCommand
{
initialValue = args[2];
}
- this->Makefile->AddCacheDefinition(args[0].c_str(),
- cmSystemTools::IsOn(initialValue.c_str()),
- args[1].c_str());
-
+ this->Makefile->AddCacheDefinition(args[0].c_str(), initialValue.c_str(),
+ args[1].c_str(), cmCacheManager::BOOL);
return true;
}