summaryrefslogtreecommitdiff
path: root/Source/cmGetCMakePropertyCommand.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-22 03:00:00 -0400
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-25 09:10:46 -0400
commitc84cf42897e4d95706d4f750c2ad085c84a259f2 (patch)
tree980169e295b16dbc56fe3577b48913fd4a9c2e8a /Source/cmGetCMakePropertyCommand.cxx
parentd13d5c11cf8b5878c5e63b067e73a2175f01d93f (diff)
downloadcmake-c84cf42897e4d95706d4f750c2ad085c84a259f2.tar.gz
cmState::GetGlobalProperty: return cmProp
Diffstat (limited to 'Source/cmGetCMakePropertyCommand.cxx')
-rw-r--r--Source/cmGetCMakePropertyCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGetCMakePropertyCommand.cxx b/Source/cmGetCMakePropertyCommand.cxx
index ff4e312f3b..4a9509bb25 100644
--- a/Source/cmGetCMakePropertyCommand.cxx
+++ b/Source/cmGetCMakePropertyCommand.cxx
@@ -36,12 +36,12 @@ bool cmGetCMakePropertyCommand(std::vector<std::string> const& args,
status.GetMakefile().GetGlobalGenerator()->GetInstallComponents();
output = cmJoin(*components, ";");
} else {
- const char* prop = nullptr;
+ cmProp prop = nullptr;
if (!args[1].empty()) {
prop = status.GetMakefile().GetState()->GetGlobalProperty(args[1]);
}
if (prop) {
- output = prop;
+ output = *prop;
}
}