summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-01 09:00:00 -0400
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-04-01 10:56:34 -0400
commitaba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c (patch)
tree583a67deafe91340834232335a5e318039e2f0ff /Source/cmGlobalVisualStudio7Generator.cxx
parentcfc92b483fbd3695d4a67843977e709ba4d7ea47 (diff)
downloadcmake-aba23c747b4a7fb342ae77d67b8b5cfbe9a67c8c.tar.gz
cmMakefile::GetProperty: return cmProp
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 9a9900af7e..4b8010a392 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -526,8 +526,8 @@ void cmGlobalVisualStudio7Generator::WriteSLNGlobalSections(
extensibilityAddInsOverridden = true;
}
fout << "\tGlobalSection(" << name << ") = " << sectionType << "\n";
- std::vector<std::string> keyValuePairs =
- cmExpandedList(root->GetMakefile()->GetProperty(it));
+ cmProp p = root->GetMakefile()->GetProperty(it);
+ std::vector<std::string> keyValuePairs = cmExpandedList(p ? *p : "");
for (std::string const& itPair : keyValuePairs) {
const std::string::size_type posEqual = itPair.find('=');
if (posEqual != std::string::npos) {