diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 14:22:08 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2010-09-01 17:09:08 (GMT) |
commit | fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d (patch) | |
tree | cd9736d600c9a8606ed40493c33c825a1d0f3f30 /Source/cmake.h | |
parent | 786e2695cb68402d44357002b438c95229c4fb19 (diff) | |
download | CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.zip CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.tar.gz CMake-fff9f6d6f74aa92d0bc4adf3a80a25b1b662458d.tar.bz2 |
Rename flags again and use variablewatch for cli
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 7304d94..7f7546a 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -310,8 +310,11 @@ class cmake void SetWarnUninitialized(bool b) { this->WarnUninitialized = b;} bool GetWarnUnused() { return this->WarnUnused;} void SetWarnUnused(bool b) { this->WarnUnused = b;} - bool GetDefaultToUsed() { return this->DefaultToUsed;} - void SetDefaultToUsed(bool b) { this->DefaultToUsed = b;} + bool GetWarnUnusedCli() { return this->WarnUnusedCli;} + void SetWarnUnusedCli(bool b) { this->WarnUnusedCli = b;} + + void MarkCliAsUsed(const std::string& variable); + // Define a property void DefineProperty(const char *name, cmProperty::ScopeType scope, const char *ShortDescription, @@ -451,7 +454,8 @@ private: bool Trace; bool WarnUninitialized; bool WarnUnused; - bool DefaultToUsed; + bool WarnUnusedCli; + std::map<std::string, bool> UsedCliVariables; std::string CMakeEditCommand; std::string CMakeCommand; std::string CXXEnvironment; |