From 3c2e58eeb884adea8ee12462f7d471ab518a673f Mon Sep 17 00:00:00 2001 From: Marc Chevrier Date: Thu, 2 Sep 2021 17:52:37 +0200 Subject: AddCacheEntry accept cmProp or std::string --- Source/cmake.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Source/cmake.h') 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; -- cgit v1.2.1