summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:00 (GMT)
committerVitaly Stakhovsky <vvs31415@gitlab.org>2021-05-11 15:20:04 (GMT)
commit5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf (patch)
tree440ad6c931ede616674c1616cb328efc0ad80cf0 /Source/cmGlobalGenerator.cxx
parentee87e53d3732a6482841c01c16e89f2822137d0e (diff)
downloadCMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.zip
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.gz
CMake-5e8fa0b7bcdd8f4f1af2a61335df9a1c952dbbdf.tar.bz2
Source: Minor code improvements
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 55fba79..1357974 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -2260,7 +2260,7 @@ bool cmGlobalGenerator::IsExcluded(cmLocalGenerator* root,
// Check whether the genex expansion of the property agrees in all
// configurations.
- if (trueCount && falseCount) {
+ if (trueCount > 0 && falseCount > 0) {
std::ostringstream e;
e << "The EXCLUDE_FROM_ALL property of target \"" << target->GetName()
<< "\" varies by configuration. This is not supported by the \""