summaryrefslogtreecommitdiffstats
path: root/Source/cmMakefile.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-06-12 10:52:47 (GMT)
committerBrad King <brad.king@kitware.com>2020-06-18 13:52:05 (GMT)
commitfcea4a3b452c5126d826610f73fb669c2e600726 (patch)
tree20865a060120ce7acfea800bf972cb204d8559f6 /Source/cmMakefile.cxx
parent0a7a4665beaa5a8af42995410e590bc0731d6748 (diff)
downloadCMake-fcea4a3b452c5126d826610f73fb669c2e600726.zip
CMake-fcea4a3b452c5126d826610f73fb669c2e600726.tar.gz
CMake-fcea4a3b452c5126d826610f73fb669c2e600726.tar.bz2
cmStateSnapshot: Invert CanPopPolicyScope return value to match name
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r--Source/cmMakefile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx
index 1f1c06a..3c1cba2 100644
--- a/Source/cmMakefile.cxx
+++ b/Source/cmMakefile.cxx
@@ -4605,7 +4605,7 @@ void cmMakefile::PopSnapshot(bool reportError)
// cmStateSnapshot manages nested policy scopes within it.
// Since the scope corresponding to the snapshot is closing,
// reject any still-open nested policy scopes with an error.
- while (!this->StateSnapshot.CanPopPolicyScope()) {
+ while (this->StateSnapshot.CanPopPolicyScope()) {
if (reportError) {
this->IssueMessage(MessageType::FATAL_ERROR,
"cmake_policy PUSH without matching POP");