diff options
author | Brad King <brad.king@kitware.com> | 2020-03-17 12:04:59 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-03-17 12:05:29 (GMT) |
commit | d2e0b8bcfdf93806a01917e3692cc93a34d2f90c (patch) | |
tree | e6d9745f97ad345a7b31301d33fae1389f11dda2 /Source/cmCPluginAPI.cxx | |
parent | 2b720f6ab6b86db3eed13c107acda8562072ffef (diff) | |
parent | 60f57d0dccb18bfcb37e6bd0c6496cc2e7996d14 (diff) | |
download | CMake-d2e0b8bcfdf93806a01917e3692cc93a34d2f90c.zip CMake-d2e0b8bcfdf93806a01917e3692cc93a34d2f90c.tar.gz CMake-d2e0b8bcfdf93806a01917e3692cc93a34d2f90c.tar.bz2 |
Merge topic 'prop_t'
60f57d0dcc cmPropertyMap: Introduce cmProp as return type for GetProperty() functions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4471
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 80441be..874efa5 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -585,7 +585,8 @@ const char* CCONV cmSourceFileGetProperty(void* arg, const char* prop) if (!strcmp(prop, "LOCATION")) { return sf->FullPath.c_str(); } - return sf->Properties.GetPropertyValue(prop); + cmProp retVal = sf->Properties.GetPropertyValue(prop); + return retVal ? retVal->c_str() : nullptr; } int CCONV cmSourceFileGetPropertyAsBool(void* arg, const char* prop) |