summaryrefslogtreecommitdiffstats
path: root/Source/cmState.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-03-17 12:04:59 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-03-17 12:05:29 (GMT)
commitd2e0b8bcfdf93806a01917e3692cc93a34d2f90c (patch)
treee6d9745f97ad345a7b31301d33fae1389f11dda2 /Source/cmState.cxx
parent2b720f6ab6b86db3eed13c107acda8562072ffef (diff)
parent60f57d0dccb18bfcb37e6bd0c6496cc2e7996d14 (diff)
downloadCMake-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/cmState.cxx')
-rw-r--r--Source/cmState.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmState.cxx b/Source/cmState.cxx
index 51e4976..f424afa 100644
--- a/Source/cmState.cxx
+++ b/Source/cmState.cxx
@@ -625,7 +625,8 @@ const char* cmState::GetGlobalProperty(const std::string& prop)
}
#undef STRING_LIST_ELEMENT
- return this->GlobalProperties.GetPropertyValue(prop);
+ cmProp retVal = this->GlobalProperties.GetPropertyValue(prop);
+ return retVal ? retVal->c_str() : nullptr;
}
bool cmState::GetGlobalPropertyAsBool(const std::string& prop)