summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-08 21:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-03-08 21:22:43 (GMT)
commitb0dc52704b5c4627c9ac11f1c63236367d7e3d3c (patch)
tree30c678d7762c831c13ca34b5078626cc9255eda4 /Source/cmGlobalVisualStudio7Generator.cxx
parent1bb7474abac4eb3aa7dd1b52d9d09d2205e104f3 (diff)
downloadCMake-b0dc52704b5c4627c9ac11f1c63236367d7e3d3c.zip
CMake-b0dc52704b5c4627c9ac11f1c63236367d7e3d3c.tar.gz
CMake-b0dc52704b5c4627c9ac11f1c63236367d7e3d3c.tar.bz2
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 9799124..eb33825 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);
}