summaryrefslogtreecommitdiff
path: root/Source/cmSourceFile.h
diff options
context:
space:
mode:
authorSebastian Holtermann <sebholt@xwmw.org>2018-07-02 12:39:54 +0200
committerSebastian Holtermann <sebholt@xwmw.org>2018-07-02 12:39:54 +0200
commit127094f2f0e444b78d224d933a28a8313e487d36 (patch)
tree5ff67f9ef579b54811dbd04418ad972b3883a6be /Source/cmSourceFile.h
parent752c2721a17e95f642874562f6b406f1f05b4430 (diff)
downloadcmake-127094f2f0e444b78d224d933a28a8313e487d36.tar.gz
Add GetSafeProperty method to cmTarget, cmGeneratorTarget and cmSourceFile
Diffstat (limited to 'Source/cmSourceFile.h')
-rw-r--r--Source/cmSourceFile.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmSourceFile.h b/Source/cmSourceFile.h
index 1516d98eda..ab0f229277 100644
--- a/Source/cmSourceFile.h
+++ b/Source/cmSourceFile.h
@@ -45,7 +45,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;
/** Implement getting a property when called from a CMake language