mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-15 03:48:02 +08:00
cmState: Externalize logic to caller.
This commit is contained in:
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user