diff options
author | Brad King <brad.king@kitware.com> | 2011-03-24 13:24:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2011-03-24 13:45:33 (GMT) |
commit | a75ebe3ea48c957e3e7b8c1438ceb6136595eb61 (patch) | |
tree | 946038ca7600d9066fba3d30518a219d9bf4af7c /Source/cmake.h | |
parent | d5d661d2b259447edfc89d130878f3a9b2203ea1 (diff) | |
download | CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.zip CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.tar.gz CMake-a75ebe3ea48c957e3e7b8c1438ceb6136595eb61.tar.bz2 |
Refine unused cache variable warning
List all unused variables in one warning. Cleanup implementation to run
the check exactly once at the end of generation.
Diffstat (limited to 'Source/cmake.h')
-rw-r--r-- | Source/cmake.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmake.h b/Source/cmake.h index 1bb42d3..00fba57 100644 --- a/Source/cmake.h +++ b/Source/cmake.h @@ -368,8 +368,8 @@ class cmake void UnwatchUnusedCli(const char* var); void WatchUnusedCli(const char* var); - void RunCheckForUnusedVariables(const std::string& reason) const; protected: + void RunCheckForUnusedVariables(); void InitializeProperties(); int HandleDeleteCacheVariables(const char* var); cmPropertyMap Properties; @@ -465,7 +465,7 @@ private: bool WarnUnused; bool WarnUnusedCli; bool CheckSystemVars; - std::map<std::string, bool> UsedCliVariables; + std::map<cmStdString, bool> UsedCliVariables; std::string CMakeEditCommand; std::string CMakeCommand; std::string CXXEnvironment; |