- 17 Jun, 2009 1 commit
-
-
Brad King authored
Errors and warnings from the if() command always display the argument list given to the command followed by an explanation of the problem. This moves the argument list into a pre-formatted block and follows it with a paragraph-form explanation. The result looks cleaner.
-
- 12 Jun, 2009 2 commits
-
-
Ken Martin authored
-
Ken Martin authored
-
- 21 Jan, 2009 2 commits
-
-
Brad King authored
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.
-
Brad King authored
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.
-
- 20 Jan, 2009 2 commits
-
-
Brad King authored
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.
-
Brad King authored
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.
-
- 01 Oct, 2008 1 commit
-
-
Bill Hoffman authored
-
- 10 Sep, 2008 1 commit
-
-
Brad King authored
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]]]".
-
- 20 Aug, 2008 1 commit
-
-
Brad King authored
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.
-
- 28 Jun, 2008 1 commit
-
-
Ken Martin authored
-
- 26 Jun, 2008 1 commit
-
-
Ken Martin authored
-
- 20 Mar, 2008 1 commit
-
-
Brad King authored
- 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)"
-
- 29 Feb, 2008 2 commits
-
-
Bill Hoffman authored
-
Bill Hoffman authored
ENH: make CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS the default and remove the 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.
-
- 23 Jan, 2008 1 commit
-
-
Ken Martin authored
ENH: add return and break support to cmake, also change basic command invocation signature to be able to return extra informaiton via the cmExecutionStatus class
-
- 29 Aug, 2007 2 commits
-
-
Alexander Neundorf authored
BUG: this seems to fix the regexp result-storage problem, now it seems the actual result is tored instead of "1" , as it happened for StringFileTest on Windows Alex
-
Alexander Neundorf authored
ENH: also store the group matches from IF( MATCHES) in CMAKE_MATCH_(0..9) Alex
-
- 06 Jun, 2007 1 commit
-
-
Alexander Neundorf authored
ENH: add IF(IS_ABSOLUTE path), so no regex matching is required in the cmake scripts Alex
-
- 17 May, 2007 2 commits
- 12 Dec, 2006 1 commit
-
-
Ken Martin authored
-
- 07 Dec, 2006 1 commit
-
-
Ken Martin authored
-
- 16 Nov, 2006 1 commit
-
-
Ken Martin authored
-
- 25 Oct, 2006 2 commits
-
-
Brad King authored
BUG: It cannot be an error if the values do not convert. The docs say that if the values do not convert the test is false.
-
Brad King authored
BUG: For LESS, GREATER, and EQUAL check that the arguments can actually be 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.
-
- 23 Oct, 2006 2 commits
- 22 Sep, 2006 1 commit
-
-
Ken Martin authored
-
- 26 Aug, 2006 1 commit
-
-
Brad King authored
-
- 25 Aug, 2006 1 commit
-
-
Brad King authored
-
- 31 May, 2006 1 commit
-
-
Ken Martin authored
-
- 19 May, 2006 1 commit
-
-
Ken Martin authored
-
- 18 May, 2006 1 commit
-
-
Ken Martin authored
-
- 11 May, 2006 1 commit
-
-
Ken Martin authored
-
- 30 Mar, 2006 1 commit
-
-
Bill Hoffman authored
ENH: add support for win64 for visual studio 2005 ide and nmake, also fix warnings produced by building for win64
-
- 22 Mar, 2006 1 commit
-
-
Ken Martin authored
-
- 15 Mar, 2006 1 commit
-
-
Ken Martin authored
-
- 10 Feb, 2006 1 commit
-
-
Brad King authored
-
- 17 Nov, 2005 1 commit
-
-
Ken Martin authored
-