diff options
author | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-02 10:39:54 (GMT) |
---|---|---|
committer | Sebastian Holtermann <sebholt@xwmw.org> | 2018-07-02 10:39:54 (GMT) |
commit | 127094f2f0e444b78d224d933a28a8313e487d36 (patch) | |
tree | 5ff67f9ef579b54811dbd04418ad972b3883a6be /Source/cmTarget.h | |
parent | 752c2721a17e95f642874562f6b406f1f05b4430 (diff) | |
download | CMake-127094f2f0e444b78d224d933a28a8313e487d36.zip CMake-127094f2f0e444b78d224d933a28a8313e487d36.tar.gz CMake-127094f2f0e444b78d224d933a28a8313e487d36.tar.bz2 |
Add GetSafeProperty method to cmTarget, cmGeneratorTarget and cmSourceFile
Diffstat (limited to 'Source/cmTarget.h')
-rw-r--r-- | Source/cmTarget.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmTarget.h b/Source/cmTarget.h index 5f0b33c..7a3ab65 100644 --- a/Source/cmTarget.h +++ b/Source/cmTarget.h @@ -200,7 +200,10 @@ public: void SetProperty(const std::string& prop, const char* value); void AppendProperty(const std::string& prop, const char* value, bool asString = false); + ///! Might return a nullptr if the property is not set or invalid const char* GetProperty(const std::string& prop) const; + ///! Always returns a valid pointer + const char* GetSafeProperty(const std::string& prop) const; bool GetPropertyAsBool(const std::string& prop) const; void CheckProperty(const std::string& prop, cmMakefile* context) const; const char* GetComputedProperty(const std::string& prop, |