summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-02-23 15:26:48 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-02-23 15:26:48 (GMT)
commit9627c5238a08acfdeea4a26c0cdea7de68470a72 (patch)
tree7e2d41233b693f30f45c41d7977d92114fdba907 /Source
parent67fa9462adbad2b90b13ba942f2a71c0ea7674c1 (diff)
parent51f8de810223139ea0dcb7bafcabe12fc8e075c1 (diff)
downloadCMake-9627c5238a08acfdeea4a26c0cdea7de68470a72.zip
CMake-9627c5238a08acfdeea4a26c0cdea7de68470a72.tar.gz
CMake-9627c5238a08acfdeea4a26c0cdea7de68470a72.tar.bz2
Merge topic 'if-optimize'
51f8de81 if(): avoid one needless string compare for all if() statements
Diffstat (limited to 'Source')
-rw-r--r--Source/cmIfCommand.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmIfCommand.cxx b/Source/cmIfCommand.cxx
index 3362abb..6dea5c1 100644
--- a/Source/cmIfCommand.cxx
+++ b/Source/cmIfCommand.cxx
@@ -45,7 +45,7 @@ IsFunctionBlocked(const cmListFileFunction& lff,
{
this->ScopeDepth++;
}
- if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
+ else if (!cmSystemTools::Strucmp(lff.Name.c_str(),"endif"))
{
this->ScopeDepth--;
// if this is the endif for this if statement, then start executing