diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-02 15:52:37 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-10 13:45:51 (GMT) |
commit | 3c2e58eeb884adea8ee12462f7d471ab518a673f (patch) | |
tree | f8adf34b01f5364785d855a296f4f64686ef6cfb /Source/cmCacheManager.cxx | |
parent | c8991f17cf5bb07fc1b0d7fa68e9613fa8617900 (diff) | |
download | CMake-3c2e58eeb884adea8ee12462f7d471ab518a673f.zip CMake-3c2e58eeb884adea8ee12462f7d471ab518a673f.tar.gz CMake-3c2e58eeb884adea8ee12462f7d471ab518a673f.tar.bz2 |
AddCacheEntry accept cmProp or std::string
Diffstat (limited to 'Source/cmCacheManager.cxx')
-rw-r--r-- | Source/cmCacheManager.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmCacheManager.cxx b/Source/cmCacheManager.cxx index 8fefaa6..0b59840 100644 --- a/Source/cmCacheManager.cxx +++ b/Source/cmCacheManager.cxx @@ -521,7 +521,7 @@ void cmCacheManager::PrintCache(std::ostream& out) const "=================================================\n"; } -void cmCacheManager::AddCacheEntry(const std::string& key, const char* value, +void cmCacheManager::AddCacheEntry(const std::string& key, cmProp value, const char* helpString, cmStateEnums::CacheEntryType type) { @@ -550,10 +550,10 @@ void cmCacheManager::AddCacheEntry(const std::string& key, const char* value, : "(This variable does not exist and should not be used)"); } -void cmCacheManager::CacheEntry::SetValue(const char* value) +void cmCacheManager::CacheEntry::SetValue(cmProp value) { if (value) { - this->Value = value; + this->Value = *value; this->Initialized = true; } else { this->Value.clear(); |