summaryrefslogtreecommitdiffstats
path: root/Source/cmAddCustomCommandCommand.h
Commit message (Collapse)AuthorAgeFilesLines
* stringapi: Command namesBen Boeckel2014-03-081-1/+1
|
* Drop builtin command documentationBrad King2013-10-161-136/+0
| | | | | Drop all GetTerseDocumentation and GetFullDocumentation methods from commands. The command documentation is now in Help/command/*.rst files.
* Fix warnings about \brief usageSean McBride2013-10-081-3/+1
| | | | | A doxygen \brief is ended with a newline, so remove a newline right after \brief to fix clang -Wdocumentation warning.
* AddCustomCommand: Handle multiple IMPLICIT_DEPENDS files (#10048)Alex Neundorf2012-11-061-1/+4
| | | | | | | | | | | | | The code handling IMPLICIT_DEPENDS was only able to track a single file, the latest file replaced earlier files in the list. The documentation now mentions that the language has to be prefixed to every file and the test now uses two implicit dependencies, where only the second is modified to trigger re-running of the custom command. Alex Inspired-by: Michael Wild <themiwi@users.sourceforge.net>
* Remove trailing whitespace from most CMake and C/C++ codeKitware Robot2012-08-131-5/+5
| | | | | | | | | | | | | | | | | 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-3/+3
| | | | | Use const_cast for the special case in cmFindBase where GetFullDocumentation calls GenerateDocumentation.
* Document caveat of custom commands in multiple targets (#12311)Brad King2011-06-301-0/+4
| | | | | | A common mistake when using custom commands is to list the output of a command in multiple targets that may build in parallel. Warn against this case in the documentation and suggest a better approach.
* Handle relative WORKING_DIRECTORY in add_custom_(command|target)Brad King2011-01-261-0/+2
| | | | This also fixes handling of trailing slashes in the directory name.
* Introduce "generator expression" syntax to custom commands (#11209)Brad King2010-12-151-2/+10
| | | | | | | | | Evaluate in the COMMAND arguments of custom commands the generator expression syntax introduced in commit d2e1f2b4 (Introduce "generator expressions" to add_test, 2009-08-11). These expressions have a syntax like $<TARGET_FILE:mytarget> and are evaluated during build system generation. This syntax allows per-configuration target output files to be referenced in custom command lines.
* Document custom command behavior without DEPENDS (#11407)Brad King2010-11-051-0/+3
| | | | | | The behavior of add_custom_command when no DEPENDS option is specified matches that of standard Make behavior, but it does not hurt to describe it explicitly.
* 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: Clarify VERBATIM option documentationBrad King2009-04-011-6/+7
| | | | | | | | The previous wording of the VERBATIM option documentation in the add_custom_command and add_custom_target commands was confusing. It could be interpreted as the opposite of what the option means (no escaping instead of escaping). This clarifies the documentation to explicitly state that it escapes.
* ENH: Document scope of add_custom_command outputsBrad King2009-03-301-3/+8
| | | | | | This explicitly states the scope of add_custom_command rules in the documentation of add_custom_command and add_custom_target. See issue #8815.
* ENH: Remove SKIP_RULE_DEPENDS option from add_custom_command()Brad King2008-06-021-7/+1
| | | | | | | | - Option was recently added but never released. - Custom commands no longer depend on build.make so we do not need the option. - Rule hashes now take care of rebuilding when rules change so the dependency is not needed.
* ENH: Add SKIP_RULE_DEPENDS option for add_custom_command()Brad King2008-05-141-1/+7
| | | | | | - Allows make rules to be created with no dependencies. - Such rules will not re-run even if the commands themselves change. - Useful to create rules that run only if the output is missing.
* ENH: Make add_custom_command interpret relative OUTPUT locations with ↵Brad King2008-01-301-0/+3
| | | | respect to the build tre instead of the source tree. This can greatly simplify user code since generating a file will not need to reference CMAKE_CURRENT_BINARY_DIR. The new behavior is what users expect 99% of the time.
* ENH: add return and break support to cmake, also change basic command ↵Ken Martin2008-01-231-1/+2
| | | | invocation signature to be able to return extra informaiton via the cmExecutionStatus class
* ENH: make commands lower case by defaultKen Martin2007-10-101-4/+4
|
* ENH: Added IMPLICIT_DEPENDS option to ADD_CUSTOM_COMMAND. It currently ↵Brad King2007-09-171-0/+10
| | | | works only for Makefile generators. It allows a custom command to have implicit dependencies in the form of C or CXX sources.
* STYLE: add more docsBill Hoffman2007-07-171-1/+4
|
* BUG: Target names in the COMMAND part of a custom command should not create ↵Brad King2007-05-231-1/+17
| | | | a file-level dependency that forces the command to rerun when the executable target rebuilds, but the target-level dependency should still be created. Target names in a DEPENDS should do both a target-level and file-level dependency. Updated the BuildDepends test to check that this works.
* BUG: COMMENT was missing from docs.Brad King2006-10-041-3/+4
|
* ENH: Added APPEND option to ADD_CUSTOM_COMMAND to allow extra dependencies ↵Brad King2006-10-041-2/+10
| | | | to be connected later. This is useful to create one rule and then have a macro add things to it later. This addresses bug#2151.
* ENH: Added SYMBOLIC source file property to mark custom command outputs that ↵Brad King2006-10-021-1/+4
| | | | are never actually created on disk. This is used by the Watcom WMake generator to generate the .SYMBOLIC mark on the files in the make system.
* ENH: Added VERBATIM option to ADD_CUSTOM_COMMAND and ADD_CUSTOM_TARGET ↵Brad King2006-09-281-3/+11
| | | | commands. This option enables full escaping of custom command arguments on all platforms. See bug#3786.
* BUG: Clarified documentation about custom command outputs and custom target ↵Brad King2006-06-151-4/+6
| | | | dependencies.
* ENH: Added support for multiple outputs generated by a single custom ↵Brad King2006-04-111-1/+3
| | | | command. For Visual Studio generators the native tool provides support. For Xcode and Makefile generators a simple trick is used. The first output is considered primary and has the build rule attached. Other outputs simply depend on the first output with no build rule. During cmake_check_build_system CMake detects when a secondary output is missing and removes the primary output to make sure all outputs are regenerated. This approach always builds the custom command at the right time and only once even during parallel builds.
* ENH: add working directory supportBill Hoffman2006-02-081-1/+5
|
* BUG: Fixed formatting of generated documentation.Brad King2005-02-221-3/+3
|
* ENH: Updated implementation of custom commands. Multiple command lines are ↵Brad King2005-02-221-6/+9
| | | | now supported effectively allowing entire scripts to be written. Also removed extra variable expansions and cleaned up passing of commands through to the generators. The command and individual arguments are now kept separate all the way until the generator writes them out. This cleans up alot of escaping issues.
* update docsKen Martin2004-04-221-1/+4
|
* removed redundent includesKen Martin2003-08-101-1/+0
|
* ENH: Tweaked whitespace in documentation of command.Brad King2003-08-061-8/+6
|
* command should nto be inheritedBill Hoffman2003-06-041-6/+0
|
* better docsKen Martin2003-06-031-29/+0
|
* better docsKen Martin2003-06-031-20/+6
|
* yikes added new custom command supportKen Martin2003-06-031-25/+52
|
* Fix to documentation formatting: removed extra newline.Brad King2003-02-191-1/+1
|
* ENH: Cleaned up documentation and formatted it for use by cmDocumentation.Brad King2003-02-141-17/+30
|
* ENH: clean up docs someBill Hoffman2002-12-301-1/+16
|
* Add comment support, so that you can see in build process what the custom ↵Andy Cedilnik2002-12-101-2/+2
| | | | command does
* 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.
* ENH: use target as source if source is emptySebastien Barre2002-04-111-1/+1
|
* ENH:Updated copyrightWill Schroeder2002-01-211-4/+5
|
* Fix add custom command so that it actually executes the codeAndy Cedilnik2002-01-031-0/+18
|
* SOURCE, COMMAND, TARGET are required nowSebastien Barre2001-11-091-1/+1
|
* Reimplement code. Since a custom command is very flexible and might be ↵Sebastien Barre2001-11-091-2/+3
| | | | extended in the future, make all arguments prefixed with arg type, make ordering irrelevant and potentially all args optional.
* Added accessor for add custom commandAndy Cedilnik2001-11-071-0/+79