summaryrefslogtreecommitdiffstats
path: root/Source/cmCommands.cxx
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'set_directory_properties-script-mode'Brad King2018-10-301-2/+2
|\ | | | | | | | | | | | | 50572d638b set_directory_properties: Restore in script mode Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2544
| * set_directory_properties: Restore in script modeBrad King2018-10-291-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | Since commit v3.10.0-rc1~391^2~3 (Add directory property 'LABELS' and CMAKE_DIRECTORY_LABELS variable, 2017-06-23) this command was accidentally not allowed in script mode. It was dropped because `ctest -S` mode needs to start with CMake's normal script mode and then replace the `set_directory_properties` implementation. Restore the normal `set_directory_properties` in script mode and then add special logic to replace it in ctest. Also add a test case. Fixes: #18523
* | LINK_DIRECTORIES: Add new properties and commandsMarc Chevrier2018-09-251-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | These new capabilities enable to manage link directories Two new properties: * target properties: LINK_DIRECTORIES and INTERFACE_LINK_DIRECTORIES One new command * target_link_directories(): to populate target properties Fixes: #17215
* | LINK_OPTIONS: Add new family of propertiesMarc Chevrier2018-06-061-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This family enable to manage link flags Three new properties: * directory property: LINK_OPTIONS * target properties: LINK_OPTIONS and INTERFACE_LINK_OPTIONS Two new commands * add_link_options(): to populate directory property * target_link_options(): to populate target properties Fixes: #16543
* | Revise C++ coding style using clang-format-6.0Kitware Robot2018-06-011-44/+51
| | | | | | | | | | | | | | | | | | | | | | | | Run the `clang-format.bash` script to update all our C and C++ code to a new style defined by `.clang-format`. Use `clang-format` version 6.0. * If you reached this commit for a line in `git blame`, re-run the blame operation starting at the parent of this commit to see older history for the content. * See the parent commit for instructions to rebase a change across this style transition commit.
* | add_compile_definitions: add new commandMarc Chevrier2018-04-201-0/+3
| | | | | | | | | | | | | | This command manages preprocessor definitions at directory level and supports generator expressions. Fixes: #15374
* | Various typo fixesLuz Paz2018-01-031-1/+1
|/ | | | Some are user-facing. Others are source comments.
* bootstrap: make target_* commands availableDaniel Pfeifer2017-08-181-14/+14
|
* Add directory property 'LABELS' and CMAKE_DIRECTORY_LABELS variableBetsy McPhail2017-07-101-2/+2
| | | | | The specified LABELS will be passed down to subdirectories as well as any targets or tests in the directory.
* include_guard: implement new commandPavel Solodovnikov2017-06-221-0/+2
|
* cmCommands: use new methods for builtin commandsDaniel Pfeifer2017-05-111-132/+156
|
* cmake: register fake project commands in -P modeDaniel Pfeifer2017-05-081-0/+61
|
* fix some include-what-you-use diagnosticsDaniel Pfeifer2017-02-171-0/+1
|
* cmCommands: add commands directly to cmStateDaniel Pfeifer2017-02-131-114/+107
|
* split Default commands into Scripting and ProjectDaniel Pfeifer2017-02-131-41/+54
|
* cmDisallowedCommand: extract policy checking from cmCommandDaniel Pfeifer2017-02-131-8/+28
| | | | Implement cmDisallowedCommand as a wrapper class for cmCommand.
* Combine all unexpected commands to a single classDaniel Pfeifer2016-11-291-14/+29
|
* Include necessary headers in commandsDaniel Pfeifer2016-10-261-12/+0
|
* Create all commands from a single functionDaniel Pfeifer2016-10-211-0/+238
|
* CMakeLists: Generate the cmCommands.cxx file.Stephen Kelly2014-02-091-86/+0
| | | | | | | | | | | | Define the list of commands in the CMakeLists.txt file. List the sources in the CMakeLib target, but mark them as HEADER_FILE_ONLY. This has the effect that IDEs will show the files, though they will not be built again. Add a cmCommandsForBootstrap.cxx file for bootstrapping purposes. Rename the cmExportLibraryDependencies file to match the common pattern.
* Add cmake_host_system_information commandNils Gladitz2013-06-191-0/+2
| | | | | | Expose the internal system information API to the CMake language. For example, it is useful to see how much memory the system has available to estimate an upper limit of tests that can run in parallel.
* Introduce add_compile_options command.Stephen Kelly2013-06-041-0/+2
| | | | | | | | | | | | | | | | | This command is similar to add_definitions, in that it affects the compile options of all targets which follow it. The implementation is similar to the implementation of the include_directories command, in that it is based on populating a COMPILE_OPTIONS directory property and using that to initialize the same property on targets. Unlike the include_directories command however, the add_compile_options command does not affect previously defined targets. That is, in the following code, foo will not be compiled with -Wall, but bar will be: add_library(foo ...) add_compile_options(-Wall) add_library(bar ...)
* Add target_compile_options command.Stephen Kelly2013-06-021-0/+2
| | | | This command populates the COMPILE_OPTIONS target property.
* Add the target_compile_definitions command.Stephen Kelly2013-01-101-0/+2
| | | | This is a convenience API to populate the corresponding properties.
* Add the target_include_directories command.Stephen Kelly2013-01-101-0/+3
| | | | This is a convenience API to populate the corresponding properties.
* bootstrap: move while() and endwhile() into the bootstrap buildAlex Neundorf2012-02-211-4/+0
| | | | Alex
* Build enable_language command during bootstrapBrad King2010-12-301-2/+0
| | | | | | | Commit 060d6e88 (Add support for windres to cygwin, 2010-12-23) and commit b2f308c8 (Add support for windows resources with mingw/msys, 2010-12-22) introduced enable_language(RC) for the first time in a platform file processed by a bootstrap-built cmake.
* 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.
* COMP: Add set_directory_properties to bootstrapBrad King2008-12-181-2/+0
| | | | We now need this command in the Tests/CMakeLists.txt file.
* ENH: add get_test_property to bootstrap so bootstrap builds test the same as ↵Bill Hoffman2008-07-071-2/+0
| | | | non-bootstrap builds
* ENH: support for cpack and install of cmake-gui as mac app bundleBill Hoffman2008-02-161-3/+0
|
* ENH: Re-enable diagnosis of non-unique target names.Brad King2008-02-141-4/+0
| | | | | | | | - Re-enable enforcement in cmMakefile::EnforceUniqueName - Improve error message to help user resolve the problem - Fix Modules/CTestTargets.cmake to not duplicate testing targets - Move commands used by the changes to Modules/CTestTargets.cmake to build during bootstrap: DEFINE_PROPERTY, GET_PROPERTY
* ENH: Add option to bootstrap script to enable Qt dialog.Brad King2008-02-131-8/+0
| | | | | | | | | - Add --qt-gui and --no-qt-gui options - Add --qt-qmake=<qmake> option to help locate Qt - Build more commands during bootstrap to help FindQt4.cmake: MATH, GET_DIRECTORY_PROPERTY, EXECUTE_PROCESS, SEPARATE_ARGUMENTS - Bootstrapping with the cmake-gui is now possible in MSys
* ENH: add functions and raise scopeKen Martin2007-12-031-2/+0
|
* ENH: move list command to bootstrap commandsBill Hoffman2007-10-291-2/+0
|
* ENH: class for parsing the arguments for INSTALL()Alexander Neundorf2007-08-231-0/+1
| | | | Alex
* COMP: fix bootstrappingAlexander Neundorf2007-06-261-4/+0
| | | | Alex
* ENH: add SetProperties into bootstrapKen Martin2007-06-261-2/+0
|
* ENH: some property cleanup and added GetPropertyKen Martin2007-06-251-0/+2
|
* ENH: add cmExternalMakefileProjectGenerator, which should make it easier toAlexander Neundorf2007-06-081-0/+2
| | | | | | | | | write generators for IDE projects, which use already existing makefiles (current the kdevelop generator) -first stept of the export interface, iniitial export() command -more replacements for the FIND_XXX docs Alex
* BUG: fix Bootstrap testAlexander Neundorf2007-06-071-2/+0
| | | | Alex
* COMP: Need CMake 2.4 or a bootstrap cmake that has ADD_SUBDIRECTORY to build.Brad King2007-05-131-2/+0
|
* ENH: Add variable watch commandAndy Cedilnik2007-04-111-0/+3
|
* BUG: cmCreateTestSourceList command is needed at boostrap time because KWSys ↵Brad King2007-03-031-2/+0
| | | | now uses test drivers.
* ENH: remove old commandsKen Martin2006-12-121-8/+0
|
* ENH: make properties a bit more formal with documentation and chainingKen Martin2006-12-071-0/+4
|
* ENH: added endmacro commandKen Martin2006-10-031-0/+2
|
* ENH: added elseifKen Martin2006-09-221-0/+2
|
* BUG: Need ADD_DEPENDENCIES command for MinGW bootstrap since kwsys uses the ↵Brad King2006-04-191-2/+0
| | | | Win32 implementation of process execution.
* COMP: Fix apple bootstrap issuesAndy Cedilnik2006-03-221-2/+0
|