diff options
author | Brad King <brad.king@kitware.com> | 2015-02-23 15:26:48 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-02-23 15:26:48 (GMT) |
commit | 9627c5238a08acfdeea4a26c0cdea7de68470a72 (patch) | |
tree | 7e2d41233b693f30f45c41d7977d92114fdba907 /Source | |
parent | 67fa9462adbad2b90b13ba942f2a71c0ea7674c1 (diff) | |
parent | 51f8de810223139ea0dcb7bafcabe12fc8e075c1 (diff) | |
download | CMake-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.cxx | 2 |
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 |