summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.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/cmGlobalVisualStudioGenerator.cxx
parentcfc92b483fbd3695d4a67843977e709ba4d7ea47 (diff)
downloadCMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.zip
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.gz
CMake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.bz2
cmMakefile::GetProperty: return cmProp
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.cxx')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.cxx b/Source/cmGlobalVisualStudioGenerator.cxx
index 1ec1559..d2f9760 100644
--- a/Source/cmGlobalVisualStudioGenerator.cxx
+++ b/Source/cmGlobalVisualStudioGenerator.cxx
@@ -507,9 +507,9 @@ std::string cmGlobalVisualStudioGenerator::GetUtilityDepend(
std::string cmGlobalVisualStudioGenerator::GetStartupProjectName(
cmLocalGenerator const* root) const
{
- const char* n = root->GetMakefile()->GetProperty("VS_STARTUP_PROJECT");
- if (n && *n) {
- std::string startup = n;
+ cmProp n = root->GetMakefile()->GetProperty("VS_STARTUP_PROJECT");
+ if (n && !n->empty()) {
+ std::string startup = *n;
if (this->FindTarget(startup)) {
return startup;
} else {