diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2021-09-02 07:42:14 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-09-02 07:42:31 (GMT) |
commit | 80e0245e0e05c27dee316a9b53e23a4c0b12a9fe (patch) | |
tree | c42b5b1167a4de0d1ce3a099374be229f24805c1 /Source/cmMakefile.h | |
parent | 3078bf20637dd3fc6fbed75c04dc5797926dd5b4 (diff) | |
parent | dc3aa4024eba3067d2cc81087aeccd4b31cf23f0 (diff) | |
download | CMake-80e0245e0e05c27dee316a9b53e23a4c0b12a9fe.zip CMake-80e0245e0e05c27dee316a9b53e23a4c0b12a9fe.tar.gz CMake-80e0245e0e05c27dee316a9b53e23a4c0b12a9fe.tar.bz2 |
Merge topic 'enh-SetProperty-accepts-new-types'
dc3aa4024e Refactor: Use new SetProperty signatures
6dfa581bab Enhancement: SetProperty accept cmProp or std::string
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !6478
Diffstat (limited to 'Source/cmMakefile.h')
-rw-r--r-- | Source/cmMakefile.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmMakefile.h b/Source/cmMakefile.h index a3d2a81..fd9a679 100644 --- a/Source/cmMakefile.h +++ b/Source/cmMakefile.h @@ -769,6 +769,11 @@ public: //! Set/Get a property of this directory void SetProperty(const std::string& prop, const char* value); + void SetProperty(const std::string& prop, cmProp value); + void SetProperty(const std::string& prop, const std::string& value) + { + this->SetProperty(prop, cmProp(value)); + } void AppendProperty(const std::string& prop, const std::string& value, bool asString = false); cmProp GetProperty(const std::string& prop) const; |