summaryrefslogtreecommitdiff
path: root/Source/cmProperty.h
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-08-01 15:00:00 -0400
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-09-02 07:27:32 -0400
commit11425041f04fd0945480b8f9e9933d1549b93981 (patch)
tree9cafffd6774513f686440b31795cbb3b5e38b65c /Source/cmProperty.h
parent99b21e58e020fedc6d09a619c1a8dc2e9ea7e2c5 (diff)
downloadcmake-11425041f04fd0945480b8f9e9933d1549b93981.tar.gz
cmMakefile::GetDefinition: return cmProp
Diffstat (limited to 'Source/cmProperty.h')
-rw-r--r--Source/cmProperty.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/cmProperty.h b/Source/cmProperty.h
index b0fcce7f53..47eec9397a 100644
--- a/Source/cmProperty.h
+++ b/Source/cmProperty.h
@@ -26,4 +26,14 @@ public:
using cmProp = const std::string*;
+inline const char* cmToCStr(cmProp p)
+{
+ return p ? p->c_str() : nullptr;
+}
+
+inline const char* cmToCStrSafe(cmProp p)
+{
+ return p ? p->c_str() : "";
+}
+
#endif