summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2001-04-23 20:34:12 (GMT)
committerKen Martin <ken.martin@kitware.com>2001-04-23 20:34:12 (GMT)
commit619dd8c4791850f3fe4d564d32f8285cb027b4fc (patch)
treed64854c0b67103f4f5abeda0a5f5929b88423dcb
parentb49204ab0db3e6eae2f346f0f2a3a67517dae80c (diff)
downloadCMake-619dd8c4791850f3fe4d564d32f8285cb027b4fc.zip
CMake-619dd8c4791850f3fe4d564d32f8285cb027b4fc.tar.gz
CMake-619dd8c4791850f3fe4d564d32f8285cb027b4fc.tar.bz2
added option command
-rw-r--r--Source/cmCommands.cxx2
-rw-r--r--Source/cmWrapTclCommand.cxx15
2 files changed, 4 insertions, 13 deletions
diff --git a/Source/cmCommands.cxx b/Source/cmCommands.cxx
index 2865806..801a646 100644
--- a/Source/cmCommands.cxx
+++ b/Source/cmCommands.cxx
@@ -47,6 +47,7 @@
#include "cmElseCommand.cxx"
#include "cmEndIfCommand.cxx"
#include "cmAddDefinitionsCommand.cxx"
+#include "cmOptionCommand.cxx"
void GetPredefinedCommands(std::list<cmCommand*>& commands)
{
@@ -91,6 +92,7 @@ void GetPredefinedCommands(std::list<cmCommand*>& commands)
commands.push_back(new cmElseCommand);
commands.push_back(new cmEndIfCommand);
commands.push_back(new cmAddDefinitionsCommand);
+ commands.push_back(new cmOptionCommand);
}
diff --git a/Source/cmWrapTclCommand.cxx b/Source/cmWrapTclCommand.cxx
index a7c0c12..c88b486 100644
--- a/Source/cmWrapTclCommand.cxx
+++ b/Source/cmWrapTclCommand.cxx
@@ -28,20 +28,9 @@ bool cmWrapTclCommand::Invoke(std::vector<std::string>& args)
// already, if so use that value and don't look for the program
const char* cacheValue
= cmCacheManager::GetInstance()->GetCacheValue("WRAP_TCL");
- if(!cacheValue)
+ if(!cacheValue || !strcmp(cacheValue,"0"))
{
- cmCacheManager::GetInstance()->AddCacheEntry("WRAP_TCL","1",
- cmCacheManager::BOOL);
- m_Makefile->AddDefinition("WRAP_TCL", "1");
- }
- else
- {
- m_Makefile->AddDefinition("WRAP_TCL", cacheValue);
- // if it is turned off then return
- if (!strcmp(cacheValue,"0"))
- {
- return true;
- }
+ return true;
}
// add in a depend in the vtkWrapTcl executable