Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | ENH: Better handling of mismatched blocks | Brad King | 2009-01-21 | 1 | -1/+2 |
| | | | | | | | | | | | | | | | | If a logical block terminates with mismatching arguments we previously failed to remove the function blocker but replayed the commands anyway, which led to cases in which we failed to report the mismatch (return shortly after the ending command). The recent refactoring of function blocker deletion changed this behavior to produce an error on the ending line by not blocking the command. Furthermore, the function blocker would stay in place and complain at the end of every equal-level block of the same type. This teaches CMake to treat the begin/end commands (if/endif, etc.) as correct and just warns when the arguments mismatch. The change allows cases in which CMake 2.6.2 silently ignored a mismatch to run as before but with a warning. | ||||
* | ENH: Better error message for unclosed blocks | Brad King | 2009-01-21 | 1 | -18/+0 |
| | | | | | | This centralizes construction of the error message for an unclosed logical block (if, foreach, etc.). We record the line at which each block is opened so it can be reported in the error message. | ||||
* | ENH: Refactor function blocker deletion | Brad King | 2009-01-20 | 1 | -12/+4 |
| | | | | | | | | | When a function blocker decides to remove itself we previously removed it at every return point from the C++ scope in which its removal is needed. This teaches function blockers to transfer ownership of themselves from cmMakefile to an automatic variable for deletion on return. Since this removes blockers before they replay their commands, we no longer need to avoid running blockers on their own commands. | ||||
* | ENH: Improve response to bad if or elseif | Brad King | 2009-01-20 | 1 | -2/+9 |
| | | | | | | | Previously bad arguments to an if() or elseif() would cause some subsequent statements in the corresponding block to execute. This teaches CMake to stop processing commands with a fatal error. It also provides context to bad elseif() error messages. | ||||
* | STYLE: fix line length stuff for KWStyle | Bill Hoffman | 2008-10-01 | 1 | -1/+2 |
| | |||||
* | ENH: Add version comparison to if() command | Brad King | 2008-09-10 | 1 | -0/+48 |
| | | | | | | Provide VERSION_LESS, VERSION_EQUAL, and VERSION_GREATER operators in the if() command. This simplifies component-wise comparison of version numbers in the form "major[.minor[.patch[.tweak]]]". | ||||
* | ENH: Add if(TARGET) command | Brad King | 2008-08-20 | 1 | -0/+7 |
| | | | | | | | | | | It is useful to be able to test if a target has been created. Often targets are created only inside conditions. Rather than storing the result of the condition manually for testing by other parts of the project, it is much easier for the other parts to just test for the target's existence. This will also be useful when find-modules start reporting results with IMPORTED targets and projects want to test if a certain target is available. | ||||
* | BUG: fix memory leak and cleanup error string code | Ken Martin | 2008-06-28 | 1 | -31/+21 |
| | |||||
* | ENH: support parenthesis as arguments and in conditionals feature request #6191 | Ken Martin | 2008-06-26 | 1 | -222/+277 |
| | |||||
* | ENH: Add "if(POLICY policy-id)" option for IF command. | Brad King | 2008-03-20 | 1 | -0/+17 |
| | | | | | | | | | | | - This will help projects support multiple CMake versions. - In order to set a policy when using a newer CMake but still working with an older CMake one may write if(POLICY CMP1234) cmake_policy(SET CMP1234 NEW) endif(POLICY CMP1234) - Note that since CMake 2.4 does not have if(POLICY) supporting it will also require using "if(COMMAND cmake_policy)" | ||||
* | ENH: fix warnings | Bill Hoffman | 2008-03-01 | 1 | -1/+1 |
| | |||||
* | ENH: make CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS the default and remove the ↵ | Bill Hoffman | 2008-02-29 | 1 | -3/+4 |
| | | | | property. If any value is specified in an endif, endforeach, endwhile, etc then make sure it matches the start string. If no values are given then it is no longer an error. | ||||
* | ENH: add return and break support to cmake, also change basic command ↵ | Ken Martin | 2008-01-23 | 1 | -64/+99 |
| | | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class | ||||
* | BUG: this seems to fix the regexp result-storage problem, now it seems the ↵ | Alexander Neundorf | 2007-08-29 | 1 | -1/+1 |
| | | | | | | actual result is tored instead of "1" , as it happened for StringFileTest on Windows Alex | ||||
* | ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9) | Alexander Neundorf | 2007-08-29 | 1 | -1/+5 |
| | | | | Alex | ||||
* | ENH: add IF(IS_ABSOLUTE path), so no regex matching is required in the cmake ↵ | Alexander Neundorf | 2007-06-06 | 1 | -0/+16 |
| | | | | | | scripts Alex | ||||
* | BUG: All variable accesses should produce watch callbacks, including ↵ | Brad King | 2007-05-17 | 1 | -3/+4 |
| | | | | IF(DEFINED <var>) ones. Instead we define a new access type for IF(DEFINED) so that the error does not show up for backward compatibility variables. | ||||
* | BUG: Do not complain about missing watched variables when they are accessd ↵ | Brad King | 2007-05-17 | 1 | -1/+1 |
| | | | | with IF(DEFINED VAR). | ||||
* | ENH: fix a warning and a nice fix to the IF command | Ken Martin | 2006-12-12 | 1 | -4/+18 |
| | |||||
* | ENH: make properties a bit more formal with documentation and chaining | Ken Martin | 2006-12-07 | 1 | -1/+2 |
| | |||||
* | ENH: remove old hack now that project level compatibility files are supported | Ken Martin | 2006-11-16 | 1 | -17/+0 |
| | |||||
* | BUG: It cannot be an error if the values do not convert. The docs say that ↵ | Brad King | 2006-10-25 | 1 | -17/+4 |
| | | | | if the values do not convert the test is false. | ||||
* | BUG: For LESS, GREATER, and EQUAL check that the arguments can actually be ↵ | Brad King | 2006-10-25 | 1 | -3/+23 |
| | | | | converted to numbers. Also force the conversion results to be stored in memory to make sure they both use the same precision. This addresses bug#3966. | ||||
* | ENH: Remove old IF(FILE_IS_NEWER) syntax. It was never in a release anyway. | Brad King | 2006-10-23 | 1 | -23/+0 |
| | |||||
* | ENH: Patch from Alex to provide nicer syntax for FILE_IS_NEWER. Using name ↵ | Brad King | 2006-10-23 | 1 | -0/+23 |
| | | | | IS_NEWER_THAN so old syntax will continue to work. | ||||
* | ENH: added elseif | Ken Martin | 2006-09-22 | 1 | -9/+56 |
| | |||||
* | STYLE: Fixed line-too-long. | Brad King | 2006-08-26 | 1 | -3/+5 |
| | |||||
* | ENH: Patch from Alex for adding IF(FILE_IS_NEWER). I also added a test. | Brad King | 2006-08-25 | 1 | -1/+22 |
| | |||||
* | ENH: reduce string construct delete ops | Ken Martin | 2006-05-31 | 1 | -5/+5 |
| | |||||
* | COMP: fix warning | Ken Martin | 2006-05-19 | 1 | -2/+0 |
| | |||||
* | ENH: allow loose loop constructs | Ken Martin | 2006-05-18 | 1 | -32/+13 |
| | |||||
* | STYLE: fix line length | Ken Martin | 2006-05-11 | 1 | -4/+8 |
| | |||||
* | ENH: add support for win64 for visual studio 2005 ide and nmake, also fix ↵ | Bill Hoffman | 2006-03-30 | 1 | -1/+1 |
| | | | | warnings produced by building for win64 | ||||
* | ENH: added some new functionality | Ken Martin | 2006-03-22 | 1 | -6/+22 |
| | |||||
* | STYLE: some m_ to this-> cleanup | Ken Martin | 2006-03-15 | 1 | -20/+20 |
| | |||||
* | ENH: Allow IF(DEFINED ENV{somevar}) to work. | Brad King | 2006-02-10 | 1 | -1/+11 |
| | |||||
* | BUG: clean up scoping | Ken Martin | 2005-11-17 | 1 | -9/+12 |
| | |||||
* | BUG: fix incrementing past end | Ken Martin | 2005-11-17 | 1 | -3/+1 |
| | |||||
* | BUG: fix incrementing past end | Ken Martin | 2005-11-17 | 1 | -39/+29 |
| | |||||
* | ENH: converted macro to use variables and fixed some case issues with some ↵ | Ken Martin | 2005-06-23 | 1 | -4/+5 |
| | | | | function blockers | ||||
* | ERR: Fix warnings and memory leak | Andy Cedilnik | 2004-08-04 | 1 | -23/+30 |
| | |||||
* | BUG: When regular expression failes to compile, produce error: Fixes part of ↵ | Andy Cedilnik | 2004-08-03 | 1 | -10/+22 |
| | | | | Bug #1025 - CMake silently ignores regular expression failure | ||||
* | added strequal | Ken Martin | 2004-06-14 | 1 | -19/+21 |
| | |||||
* | BUG: fix crash for if statment due to bad microsoft docs on deque BUG id 917 | Bill Hoffman | 2004-06-11 | 1 | -51/+110 |
| | |||||
* | horrible hack | Ken Martin | 2004-05-06 | 1 | -0/+16 |
| | |||||
* | fix warning | Ken Martin | 2004-05-04 | 1 | -1/+1 |
| | |||||
* | minor backwards fix | Ken Martin | 2004-05-03 | 1 | -0/+7 |
| | |||||
* | better if expression support | Ken Martin | 2004-05-01 | 1 | -119/+273 |
| | |||||
* | BUG: fix logic in EQUAL if test | Bill Hoffman | 2004-04-28 | 1 | -1/+1 |
| | |||||
* | ENH: add a numeric EQUAL to the IF statment, very useful for variable ↵ | Bill Hoffman | 2004-04-28 | 1 | -0/+11 |
| | | | | arguments in MACROS |