summaryrefslogtreecommitdiffstats
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2021-08-15 14:04:47 (GMT)
committerMarc Chevrier <marc.chevrier@gmail.com>2021-08-25 08:09:02 (GMT)
commit6dfa581babfb051461341ca92e0463481799361f (patch)
treeb78a81eb4e7e170820e11d324e8206045c37d29f /Source/cmake.cxx
parent71bf838cf35fabc27ff009f2901eeffc786fa753 (diff)
downloadCMake-6dfa581babfb051461341ca92e0463481799361f.zip
CMake-6dfa581babfb051461341ca92e0463481799361f.tar.gz
CMake-6dfa581babfb051461341ca92e0463481799361f.tar.bz2
Enhancement: SetProperty accept cmProp or std::string
Methods SetProperty of classes cmPropertyMap, cmStateDirectory and cmMakefile accept now cmProp or std::string as argument.
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 7f8f654..beb5d16 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2919,6 +2919,10 @@ void cmake::SetProperty(const std::string& prop, const char* value)
{
this->State->SetGlobalProperty(prop, value);
}
+void cmake::SetProperty(const std::string& prop, cmProp value)
+{
+ this->State->SetGlobalProperty(prop, value);
+}
void cmake::AppendProperty(const std::string& prop, const std::string& value,
bool asString)