summaryrefslogtreecommitdiffstats
path: root/Source/CMakeLists.txt
Commit message (Collapse)AuthorAgeFilesLines
* install(TARGETS): Add RUNTIME_DEPENDENCIES optionKyle Edwards2021-06-041-0/+4
|
* Source: Add cmInstallRuntimeDependencySetKyle Edwards2021-06-041-0/+2
|
* install(): Add IMPORTED_RUNTIME_ARTIFACTS modeKyle Edwards2021-05-311-0/+2
|
* cmMessenger: Pass title inside a metadata structureMarius Messerschmidt2021-05-191-0/+1
|
* MSYS: Add support for running under MSYS runtime environmentOrgad Shaneh2021-04-261-1/+1
| | | | Detect MSYS as CYGWIN, with the required adaptations.
* Refactor: Move some common code into separate fileKyle Edwards2021-03-191-0/+1
| | | | | | This code is going to be needed by both cmCMakePresetsFile and cmCMakePresetsFileReadJSON when the upcoming condition types are created. Move it into a header file.
* Refactor: Move cmCMakePresetsFile::ReadJSON into a separate fileKyle Edwards2021-03-191-0/+1
| | | | | | Some compilers complain about translation units that are too large. In order to prepare for upcoming additions to cmCMakePresetsFile, split ReadJSON into a separate file.
* cmGlobalVisualStudio10Generator: Adopt flag table name methodsBrad King2021-03-051-2/+0
| | | | Migrate them from `cmVisualStudio10ToolsetOptions`.
* cmXCOFF: Add helper to parse and edit the XCOFF binary formatBrad King2021-02-031-0/+10
|
* Rename CMAKE_USE_MACH_PARSER to CMake_USE_MACH_PARSERBrad King2021-02-031-2/+2
| | | | We use the `CMake_` prefix for options affecting CMake itself.
* Rename CMAKE_USE_ELF_PARSER to CMake_USE_ELF_PARSERBrad King2021-02-031-5/+5
| | | | We use the `CMake_` prefix for options affecting CMake itself.
* cmake: Reduce default recursion depth when compiling with IntelLLVMBrad King2021-01-281-0/+2
| | | | | | This compiler makes stack frames large enough (at least in Debug builds) that CMake language recursion to depth 1000 overflows the stack. Reduce the limit for this compiler.
* cmFileAPI: Add "toolchains" object kind.Ben McMorran2021-01-121-0/+2
| | | | Fixes #19514
* add_custom_{command,target}: Add genex support to OUTPUT and BYPRODUCTSBrad King2020-12-111-2/+0
| | | | | | | | | Move rejection of `#`, `<`, and `>` characters in outputs and byproducts to a generate-time check. This removes the front-end check that disallowed generator expressions. The generators have already been updated to handle them. Fixes: #12877
* Merge topic 'makefiles-compiler-deps-optims'Brad King2020-11-301-0/+2
|\ | | | | | | | | | | | | | | | | | | | | | | 2c71d051fa Makefiles Generators: use compiler for dependencies generation afd0f6785d Refactoring: Abstract Makefile line continuation format b6068ce407 Refactoring: enhance include file filtering 3401403f69 Refactoring: Introduce place-holder for dependency target. a97c41bf8b Refactoring: Makefiles Generators: Add support for various depends scanners Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Merge-request: !5528
| * Makefiles Generators: use compiler for dependencies generationMarc Chevrier2020-11-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | Each source compilation generates a dependencies file. These dependencies files are consolidated in one file per target. This consolidation is done as part of command 'cmake -E cmake_depends` launched before evaluation of makefile dependency graph. The consolidation uses the same approach as `CMake` dependencies management. Fixes: #21321
* | Merge topic 'enable-extensions-on-qnx'Brad King2020-11-301-3/+6
|\ \ | |/ |/| | | | | | | | | 34f6d76755 QNX: Do not disable compiler extensions for CMake itself Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5537
| * QNX: Do not disable compiler extensions for CMake itselfStephen Kelly2020-11-251-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The `set(CMAKE_CXX_EXTENSIONS FALSE)` option has the effect of passing compile option `-std=c++NN` instead of `-std=gnu++NN`. On some platforms, the latter form (or the secondary effects that it has, such as setting _XOPEN_SOURCE) is required. This typically affects platforms such as mingw, cygwin and QNX. The GNU-like compiers default to `-std=gnu++NN`, which means that users can typically build source code on those platforms by default. While the `set(CMAKE_CXX_EXTENSIONS FALSE)` option was set here in commit f034b0f6 (CMake compilation: do not use compiler extensions, 2020-03-14), the other changes in that commit added `#defines` which become required in the absense of use of `-std=gnu++NN`. However, only platforms regularly tested in the cmake dashboard were ported, as is reasonable. That made CMake fail to compile on QNX and perhaps other platforms which for which no one is submitting regular testing to the cmake dashboard. Make the `set(CMAKE_CXX_EXTENSIONS FALSE)` option conditional on non-QNX to restore the QNX build. Issue: #21503
| * cmake_path: remove new command from 3.19Marc Chevrier2020-11-031-2/+0
| | | | | | | | | | | | | | Defer adding this command until post-3.19 development so that it has more time to mature before being included in a release. Issue: #21385
| * Merge topic 'cmake-E-cat-binary' into release-3.19Brad King2020-10-151-0/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
* | | cmScanDepFormat: add reader and writer for the format from P1689R2Ben Boeckel2020-11-171-0/+1
| | | | | | | | | | | | | | | | | | | | | This format is currently subject to change, but is not too far from the end goal. Some bits are currently unimplemented (see TODO comments).
* | | Merge topic 'remove-server-mode'Brad King2020-10-151-14/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9952ee063a server: remove deprecated 'cmake -E server' mode Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Kyle Edwards <kyle.edwards@kitware.com> Merge-request: !5370
| * | | server: remove deprecated 'cmake -E server' modeBrad King2020-10-141-14/+0
| | | | | | | | | | | | | | | | | | | | | | | | The server mode has been deprecated since commit 996e1885c4 (server: deprecate in favor of the file-api, 2019-04-19, v3.15.0-rc1~198^2). Clients should now be using the file-api. Remove the server mode.
* | | | Merge topic 'cmake-E-cat-binary'Brad King2020-10-151-0/+2
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | | | | f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows 90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5364
| * | cmConsoleBuf: Factor out cout/cerr console buffer managementBrad King2020-10-141-0/+2
| | |
* | | cmake -E: Add cmake_transform_depfile internal commandKyle Edwards2020-10-131-0/+2
| |/ |/|
* | Presets: Add cmCMakePresetsFile classKyle Edwards2020-10-051-0/+2
| |
* | ctest: split launcher XML writer into separate classZack Galbreath2020-09-281-0/+1
| | | | | | | | | | This refactor will allow us to more easily add additional warnings and errors to builds that use launchers.
* | JSON: Add helpersKyle Edwards2020-09-091-0/+1
| |
* | cmake_path command: path managementMarc Chevrier2020-09-061-0/+2
| | | | | | | | Fixes: #19568, #20922
* | cmCMakePath: Class for path handlingMarc Chevrier2020-09-061-0/+2
| |
* | cmStandardLevelResolver: Added to handle standard level queriesRobert Maynard2020-07-011-0/+2
|/ | | | Refactored out of cmMakefile
* Source: Assume elf.h does not exist on WindowsBrad King2020-06-031-1/+3
|
* cmake_language: Rename command from cmake_commandBrad King2020-05-211-2/+2
| | | | | | Also rename the `INVOKE` signature to `CALL`. Fixes: #20732
* cmPropertyDefinitionMap: simplify and shortenTushar Maheshwari2020-05-151-2/+0
|
* Refactoring: rename "cm_static_string_view.hxx" as <cmext/string_view>Marc Chevrier2020-04-301-1/+0
|
* CMake compilation: do not use compiler extensionsMarc Chevrier2020-03-231-0/+5
| | | | | | | For now, compiler extensions are no longer activated on CMake sources. However these extensions are still used for various third parties. This MR is a partial answer to the issue #20454.
* cmake: add command line options to output script profiling dataWouter Klouwen2020-03-071-0/+1
| | | | | | | | | | | | | | | For users of CMake who want to optimize their scripts if they take a while to run, this commit adds the ability to output profiling data. To enable this output, it adds the two command line parameters to select the output path and format. This commit adds the first profiling format of type ``google-trace``, which is the output is a JSON file containing Duration events as per the Google Trace Format specification: https://docs.google.com/document/d/1CvAClvFfyA5R- PhYUmn5OOQtYMH4h6I0nSsKchNAySU/preview#
* cmake_command: Add command to INVOKE other commands by nameCristian Adam2020-02-251-0/+2
| | | | Fixes: #18392
* Add a parser for GCC-style depfilesJoerg Bornemann2020-01-281-0/+7
| | | | | | | | | | | Introduce the function cmReadGccDepfile that parses a GCC-style depfile and returns its content. The implementation uses a lexer that is modeled after the re2c implementation in Ninja. The sample files of the autotest have been created with gcc 8.3.0. This depfile reader is to be used by the Autogen facility to make use of the depfiles that are generated by Qt's meta object compiler.
* Add support for WINDOWS_EXPORT_ALL_SYMBOLS when cross-compiling to WindowsIsuru Fernando2019-12-061-1/+2
| | | | Implement `__create_def` using `llvm-nm` (when given as `CMAKE_NM`).
* Merge topic 'ctest-resource-groups'Kyle Edwards2019-11-071-6/+6
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | 016601e5e6 Merge branch 'backport-ctest-resource-groups' c1435d9812 Help: Fix error in resource allocation example eb9d945f14 CTest: Rename hardware -> resources for RunCMake tests c544cb6698 CTest: Rename hardware -> resources for source code 6ce27d3a2e cmCTestMultiProcessHandler: Rename resource locking functions a7c1e15cc4 CTest: Rename hardware -> resources for CMake variables, command options 73a40b19ff CTest: Rename "Processes" lexer to "ResourceGroups" af9ed543b0 CTest: Rename PROCESSES test property to RESOURCE_GROUPS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3994
| * Merge branch 'backport-ctest-resource-groups'Brad King2019-11-051-6/+6
| |\
| | * CTest: Rename hardware -> resources for source codeCraig Scott2019-11-051-2/+2
| | |
| | * CTest: Rename "Processes" lexer to "ResourceGroups"Brad King2019-11-051-4/+4
| | | | | | | | | | | | | | | The corresponding test property `PROCESSES` has been renamed to `RESOURCE_GROUPS`.
* | | Merge topic 'llvm-rc-fix'Brad King2019-11-071-1/+1
|\ \ \ | |/ / |/| | | | | | | | | | | | | | f0c00bec1d CMakeVersion.rc: Fix build with llvm-rc Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4003
| * | CMakeVersion.rc: Fix build with llvm-rcCristian Adam2019-11-061-1/+1
| |/ | | | | | | llvm-rc expects versioning as having four items, it fails otherwise.
* | Merge topic 'graphviz'Brad King2019-10-171-0/+2
|\ \ | | | | | | | | | | | | | | | | | | | | | 553658393c Graphviz: added test suite, fixes, enhancements Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: slodki <slodki_dom@poczta.onet.pl> Merge-request: !3766
| * | Graphviz: added test suite, fixes, enhancementsCorentin Plouet2019-10-081-0/+2
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added a fairly comprehensive test suite * Separated the graph traversal logic from the Graphviz generation code by introducing a new class, cmLinkItemsGraphVisitor{.h,cxx} * Made the graph traversal logic less ad-hoc by using existing methods in the GlobalGenerator; this fixed a few bugs * Added support for new target types: custom targets, object and unknown libraries * Improved support for ALIAS libraries by showing the alias(es) in the graph * Introduced new flags to control those new libraries (consistent with existing flags) * Updated the documentation * Removed useless setting to set graph type in dot file * Improved the node/edge shapes (nicer, more consistent) * Added a legend to the graph * Some refactoring and cleanup of the Graphviz generation code * Added test and fix for issue 19746
* | Add option to configure Ninja link job pool for CMake's own binariesBrad King2019-10-101-0/+5
|/ | | | | Create an undocumented `CMake_JOB_POOL_LINK_BIN` option that builders can set to avoid linking too many of our binaries at once.