summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio7Generator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-07-11 18:00:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-07-11 18:03:03 (GMT)
commit18726ad634d0f182940d45e9f569000cebcc4377 (patch)
tree89e7eea76cb7226f58c8a567a24b9ccc7533d0db /Source/cmGlobalVisualStudio7Generator.cxx
parentfd1df4995b6c1e063bb978e034a264b0e2d59f63 (diff)
downloadCMake-18726ad634d0f182940d45e9f569000cebcc4377.zip
CMake-18726ad634d0f182940d45e9f569000cebcc4377.tar.gz
CMake-18726ad634d0f182940d45e9f569000cebcc4377.tar.bz2
GetFeature(): return cmProp
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio7Generator.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/cmGlobalVisualStudio7Generator.cxx b/Source/cmGlobalVisualStudio7Generator.cxx
index 9f798e6..1d3bf20 100644
--- a/Source/cmGlobalVisualStudio7Generator.cxx
+++ b/Source/cmGlobalVisualStudio7Generator.cxx
@@ -694,9 +694,8 @@ std::set<std::string> cmGlobalVisualStudio7Generator::IsPartOfDefaultBuild(
}
// inspect EXCLUDE_FROM_DEFAULT_BUILD[_<CONFIG>] properties
for (std::string const& i : configs) {
- const char* propertyValue =
- target->GetFeature("EXCLUDE_FROM_DEFAULT_BUILD", i);
- if (cmIsOff(propertyValue)) {
+ cmProp propertyValue = target->GetFeature("EXCLUDE_FROM_DEFAULT_BUILD", i);
+ if (!propertyValue || cmIsOff(*propertyValue)) {
activeConfigs.insert(i);
}
}