diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-10 12:31:06 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-10 13:36:58 (GMT) |
commit | 95b0d761a75fd2da041eacc9ee22b89043ae301f (patch) | |
tree | 13a3a1b7966a6b1fa7f1483c9a61c49c2bb95a11 /Source | |
parent | 6f02034e668a307587c2eb1aa0e342fd17ca103e (diff) | |
download | CMake-95b0d761a75fd2da041eacc9ee22b89043ae301f.zip CMake-95b0d761a75fd2da041eacc9ee22b89043ae301f.tar.gz CMake-95b0d761a75fd2da041eacc9ee22b89043ae301f.tar.bz2 |
cmState: Externalize logic to caller.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/cmState.cxx | 1 | ||||
-rw-r--r-- | Source/cmake.cxx | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx index a42d075..9628265 100644 --- a/Source/cmState.cxx +++ b/Source/cmState.cxx @@ -252,7 +252,6 @@ void cmState::AddCacheEntry(const std::string& key, const char* value, { this->CMakeInstance->GetCacheManager()->AddCacheEntry(key, value, helpString, type); - this->CMakeInstance->UnwatchUnusedCli(key); } void cmState::RemoveCacheEntry(std::string const& key) diff --git a/Source/cmake.cxx b/Source/cmake.cxx index 69a3f03..b90ac69 100644 --- a/Source/cmake.cxx +++ b/Source/cmake.cxx @@ -1644,6 +1644,7 @@ void cmake::AddCacheEntry(const std::string& key, const char* value, this->State->AddCacheEntry(key, value, helpString, cmState::CacheEntryType(type)); + this->UnwatchUnusedCli(key); } const char* cmake::GetCacheDefinition(const std::string& name) const |