summaryrefslogtreecommitdiffstats
path: root/Source/cmTest.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-01 13:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-01 14:56:34 (GMT)
commitaba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c (patch)
tree583a67deafe91340834232335a5e318039e2f0ff /Source/cmTest.cxx
parentcfc92b483fbd3695d4a67843977e709ba4d7ea47 (diff)
downloadCMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.zip
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.gz
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.bz2
cmMakefile::GetProperty: return cmProp
Diffstat (limited to 'Source/cmTest.cxx')
-rw-r--r--Source/cmTest.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmTest.cxx b/Source/cmTest.cxx
index 56c441a..a26bef3 100644
--- a/Source/cmTest.cxx
+++ b/Source/cmTest.cxx
@@ -39,7 +39,9 @@ const char* cmTest::GetProperty(const std::string& prop) const
const bool chain =
this->Makefile->GetState()->IsPropertyChained(prop, cmProperty::TEST);
if (chain) {
- return this->Makefile->GetProperty(prop, chain);
+ if (cmProp p = this->Makefile->GetProperty(prop, chain)) {
+ return p->c_str();
+ }
}
return nullptr;
}