diff options
author | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-11 18:00:00 (GMT) |
---|---|---|
committer | Vitaly Stakhovsky <vvs31415@gitlab.org> | 2020-07-11 18:03:03 (GMT) |
commit | 18726ad634d0f182940d45e9f569000cebcc4377 (patch) | |
tree | 89e7eea76cb7226f58c8a567a24b9ccc7533d0db /Source/cmGlobalVisualStudio7Generator.cxx | |
parent | fd1df4995b6c1e063bb978e034a264b0e2d59f63 (diff) | |
download | CMake-18726ad634d0f182940d45e9f569000cebcc4377.zip CMake-18726ad634d0f182940d45e9f569000cebcc4377.tar.gz CMake-18726ad634d0f182940d45e9f569000cebcc4377.tar.bz2 |
GetFeature(): return cmProp
Diffstat (limited to 'Source/cmGlobalVisualStudio7Generator.cxx')
-rw-r--r-- | Source/cmGlobalVisualStudio7Generator.cxx | 5 |
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); } } |