summaryrefslogtreecommitdiff
path: root/Source/cmake.h
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-09-02 17:52:37 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2021-09-10 15:45:51 +0200
commit3c2e58eeb884adea8ee12462f7d471ab518a673f (patch)
treef8adf34b01f5364785d855a296f4f64686ef6cfb /Source/cmake.h
parentc8991f17cf5bb07fc1b0d7fa68e9613fa8617900 (diff)
downloadcmake-3c2e58eeb884adea8ee12462f7d471ab518a673f.tar.gz
AddCacheEntry accept cmProp or std::string
Diffstat (limited to 'Source/cmake.h')
-rw-r--r--Source/cmake.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/cmake.h b/Source/cmake.h
index 32c7582422..74080440c5 100644
--- a/Source/cmake.h
+++ b/Source/cmake.h
@@ -332,6 +332,18 @@ public:
cmProp GetCacheDefinition(const std::string&) const;
//! Add an entry into the cache
void AddCacheEntry(const std::string& key, const char* value,
+ const char* helpString, int type)
+ {
+ this->AddCacheEntry(key,
+ value ? cmProp(std::string(value)) : cmProp(nullptr),
+ helpString, type);
+ }
+ void AddCacheEntry(const std::string& key, const std::string& value,
+ const char* helpString, int type)
+ {
+ this->AddCacheEntry(key, cmProp(value), helpString, type);
+ }
+ void AddCacheEntry(const std::string& key, cmProp value,
const char* helpString, int type);
bool DoWriteGlobVerifyTarget() const;