summaryrefslogtreecommitdiff
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-08 17:00:00 -0400
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-08 17:22:43 -0400
commitb0dc52704b5c4627c9ac11f1c63236367d7e3d3c (patch)
tree30c678d7762c831c13ca34b5078626cc9255eda4 /Source/cmGlobalVisualStudio7Generator.cxx
parent1bb7474abac4eb3aa7dd1b52d9d09d2205e104f3 (diff)
downloadcmake-b0dc52704b5c4627c9ac11f1c63236367d7e3d3c.tar.gz
cmGeneratorExpression: remove const char* overloads
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 97991240b5..eb3382544c 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -676,7 +676,8 @@ std::set<std::string> cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
for (std::string const& i : configs) {
const char* propertyValue =
target->Target->GetMakefile()->GetDefinition(propertyName);
- if (cmIsOn(cmGeneratorExpression::Evaluate(
+ if (propertyValue &&
+ cmIsOn(cmGeneratorExpression::Evaluate(
propertyValue, target->GetLocalGenerator(), i))) {
activeConfigs.insert(i);
}