summaryrefslogtreecommitdiffstats
path: root/Source/cmGetPropertyCommand.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/cmGetPropertyCommand.cxx
parentcfc92b483fbd3695d4a67843977e709ba4d7ea47 (diff)
downloadCMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.zip
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.gz
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.bz2
cmMakefile::GetProperty: return cmProp
Diffstat (limited to 'Source/cmGetPropertyCommand.cxx')
-rw-r--r--Source/cmGetPropertyCommand.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGetPropertyCommand.cxx b/Source/cmGetPropertyCommand.cxx
index c704803..c3ac672 100644
--- a/Source/cmGetPropertyCommand.cxx
+++ b/Source/cmGetPropertyCommand.cxx
@@ -289,8 +289,9 @@ bool HandleDirectoryMode(cmExecutionStatus& status, const std::string& name,
}
// Get the property.
+ cmProp p = mf->GetProperty(propertyName);
return StoreResult(infoType, status.GetMakefile(), variable,
- mf->GetProperty(propertyName));
+ p ? p->c_str() : nullptr);
}
bool HandleTargetMode(cmExecutionStatus& status, const std::string& name,