diff options
Diffstat (limited to 'Source/cmMakefile.cxx')
-rw-r--r-- | Source/cmMakefile.cxx | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index e1cf841..370439d 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -3317,14 +3317,17 @@ bool cmMakefile::PushPolicy() return true; } -bool cmMakefile::PopPolicy() +bool cmMakefile::PopPolicy(bool reportError) { - if (PolicyStack.size() == 1) - { - cmSystemTools::Error("Attempt to pop the policy stack past " - "it's beginning."); + if(this->PolicyStack.size() == 1) + { + if(reportError) + { + cmSystemTools::Error("Attempt to pop the policy stack past " + "it's beginning."); + } return false; - } + } this->PolicyStack.pop_back(); return true; } |