diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-26 09:09:07 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-26 12:48:22 (GMT) |
commit | aa5fed5052f903614a06c55786a1f682fee787a5 (patch) | |
tree | adcf76aa35a0f8aab8b0a15db3be43cfd773855c /Source/cmTarget.h | |
parent | a645a80040d35162ba34ddec39b1b90b2466b72f (diff) | |
download | CMake-aa5fed5052f903614a06c55786a1f682fee787a5.zip CMake-aa5fed5052f903614a06c55786a1f682fee787a5.tar.gz CMake-aa5fed5052f903614a06c55786a1f682fee787a5.tar.bz2 |
SetProperty: suppress raw pointer usage
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 24f6fcd..5fe5a28 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -180,8 +180,11 @@ public: std::set<BT<std::pair<std::string, bool>>> const& GetUtilities() const; //! Set/Get a property of this target file - void SetProperty(const std::string& prop, const char* value); void SetProperty(const std::string& prop, cmValue value); + void SetProperty(const std::string& prop, std::nullptr_t) + { + this->SetProperty(prop, cmValue{ nullptr }); + } void SetProperty(const std::string& prop, const std::string& value) { this->SetProperty(prop, cmValue(value)); |