summaryrefslogtreecommitdiffstats
path: root/Source/cmMacroCommand.cxx
Commit message (Collapse)AuthorAgeFilesLines
* macro: Do not substitute for placeholders in bracket argumentsBrad King2013-10-301-0/+7
| | | | | Fix the macro command implementation to avoid substituting macro placeholders in bracket arguments recorded inside the macro block.
* macro: Add extra indentation to placeholder substitution codeBrad King2013-10-301-51/+51
| | | | | The next commit will make this block conditional so pre-indent it to clarify the simplicity of the change.
* Drop builtin command documentationBrad King2013-10-161-18/+0
| | | | | Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
* cmListFileArgument: Generalize 'Quoted' bool to 'Delimeter' enumBrad King2013-08-081-1/+1
| | | | | | Replace the boolean value that indicates whether an argument is unquoted or quoted with a generalized enumeration of possible argument types. For now "Quoted" and "Unquoted" remain the only types.
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-6/+6
| | | | | | | | | | | | | | | | | Our Git commit hooks disallow modification or addition of lines with trailing whitespace. Wipe out all remnants of trailing whitespace everywhere except third-party code. Run the following shell code: git ls-files -z -- \ bootstrap doxygen.config '*.readme' \ '*.c' '*.cmake' '*.cpp' '*.cxx' \ '*.el' '*.f' '*.f90' '*.h' '*.in' '*.in.l' '*.java' \ '*.mm' '*.pike' '*.py' '*.txt' '*.vim' | egrep -z -v '^(Utilities/cm|Source/(kwsys|CursesDialog/form)/)' | egrep -z -v '^(Modules/CPack\..*\.in)' | xargs -0 sed -i 's/ \+$//'
* Add 'const' qualifier to some cmCommand membersYury G. Kudryashov2012-02-291-5/+5
| | | | | Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
* CPack Documentation extraction from CMake script begins to workEric NOULARD2012-01-221-0/+11
| | | | | | | | | | - Enhance extract doc parser. Seems robust now. The legacy module documentation parser works as before ignoring the new markup. - Proof of concept for CPack (generic), CPack RPM and CPack Deb generator for macro and variables. Try cpack --help-command and cpack --help-variables
* For macros make sure the FilePath points to a valid pointer in the args.Bill Hoffman2010-09-011-2/+10
|
* Convert CMake to OSI-approved BSD LicenseBrad King2009-09-281-14/+9
| | | | | | | This converts the CMake license to a pure 3-clause OSI-approved BSD License. We drop the previous license clause requiring modified versions to be plainly marked. We also update the CMake copyright to cover the full development time range.
* ENH: Better policies for functions and macrosBrad King2009-01-221-0/+8
| | | | | | | This teaches functions and macros to use policies recorded at creation time when they are invoked. It restores the policies as a weak policy stack entry so that any policies set by a function escape to its caller as before.
* ENH: Enforce logical blocks in functions/macrosBrad King2009-01-211-0/+4
| | | | | This teaches function() and macro() to enforce matching logical blocks inside the recorded bodies. This makes the error message more specific.
* ENH: Better handling of mismatched blocksBrad King2009-01-211-1/+1
| | | | | | | | | | | | | | | | 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 blocksBrad King2009-01-211-11/+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: Improve context for errors in macrosBrad King2008-09-241-29/+2
| | | | | | We now properly report the source location of command arguments inside macros instead of using the macro invocation site. No information is lost because full call-stack information is already reported.
* ENH: New format for warning and error messagesBrad King2008-03-071-17/+5
| | | | | | | | | | | | | - Add cmMakefile methods IssueError and IssueWarning - Maintain an explicit call stack in cmMakefile - Include context/call-stack info in messages - Nested errors now unwind the call stack - Use new mechanism for policy warnings and errors - Improve policy error message - Include cmExecutionStatus pointer in call stack so that errors deeper in the C++ stack under a command invocation will become errors for the command
* ENH: make CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS the default and remove the ↵Bill Hoffman2008-02-291-4/+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 Martin2008-01-231-6/+22
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: make properties a bit more formal with documentation and chainingKen Martin2006-12-071-1/+2
|
* ENH: fix warningBill Hoffman2006-12-011-1/+0
|
* BUG: fix for 3815 seg faultBill Hoffman2006-12-011-4/+10
|
* ENH: fix compile errorBill Hoffman2006-10-031-3/+4
|
* BUG: fix for seg fault bug #3815Bill Hoffman2006-10-031-0/+4
|
* ENH: reduce string construct delete opsKen Martin2006-05-311-3/+3
|
* ENH: always compile progressKen Martin2006-05-231-5/+16
|
* STYLE: fix line lengthKen Martin2006-05-121-2/+2
|
* STYLE: some m_ to this-> cleanupKen Martin2006-03-151-48/+46
|
* STYLE: Fix some style issuesAndy Cedilnik2006-03-101-40/+43
|
* ENH: revert back to string replacement versionKen Martin2005-07-051-84/+119
|
* COMP: fix compiler warningsKen Martin2005-06-231-2/+1
|
* ENH: converted macro to use variables and fixed some case issues with some ↵Ken Martin2005-06-231-120/+86
| | | | function blockers
* ENH: Save command that macro overwritesAndy Cedilnik2005-06-141-0/+9
|
* ENH: performance improvementsBill Hoffman2005-04-121-3/+9
|
* COMP: fix warningKen Martin2005-03-181-2/+1
|
* ENH: big change that includes immediate subdir support, removing the notion ↵Ken Martin2005-03-181-165/+238
| | | | of inherited commands, makefiles no longer read in the parent makefiles but instead inherit thier parent makefiles current settings
* ENH: Added support for special variables CMAKE_CURRENT_LIST_FILE and ↵Brad King2004-08-041-0/+16
| | | | CMAKE_CURRENT_LIST_LINE that evaluate to the file name and line number in which they appear. This implements the feature request from bug 1012.
* ENH: make it run much fasterBill Hoffman2004-05-191-44/+55
|
* ENH: Add ARGV and ARGN support to MACRO command. ARGV is the list of all ↵Andy Cedilnik2004-04-291-0/+39
| | | | arguments and ARGN is the list of all nonexpected arguments
* WRN: remove warningsBill Hoffman2004-04-271-5/+4
|
* macros now support varargsKen Martin2004-04-261-2/+31
|
* ENH: Add option to retrieve list of macros. Close Bug #25 - Get_CMAKE_PROPERTIESAndy Cedilnik2003-08-061-0/+9
|
* performance improvementsKen Martin2003-06-241-12/+13
|
* perf improvementKen Martin2003-06-231-3/+7
|
* better error reportingKen Martin2003-04-281-2/+8
|
* ENH: Improved error message for macro invoked with incorrect number of ↵Brad King2002-12-171-1/+7
| | | | arguments.
* ENH: Improved filename/line number reporting in error message. Macro ↵Brad King2002-12-121-3/+11
| | | | invocations now chain up the error message.
* ENH: Moved ExpandListVariables out of individual commands. Argument ↵Brad King2002-12-111-36/+33
| | | | evaluation rules are now very consistent. Double quotes can always be used to create exactly one argument, regardless of contents inside.
* ENH: Added reference to Copyright.txt. Removed old reference to ITK ↵Brad King2002-10-231-3/+3
| | | | copyright. Changed program name to CMake instead of Insight in source file header. Also removed tabs.
* removed some includesKen Martin2002-09-271-1/+0
|
* minor fixKen Martin2002-08-161-5/+1
|
* added new commandKen Martin2002-08-131-0/+128