1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-06-15 08:30:44 +08:00

254 Commits

Author SHA1 Message Date
Vito Gamberini
8555c33d92
PkgC: Add cmake_pkg_config(EXTRACT) command
* Wraps the llpkgc parser with cmPkgConfigParser
* Adds various resolution and mangling code under cmPkgConfigResolver
* Documents new command cmake_pkg_config(EXTRACT). Documentation is written with
  the assumption additional subcommands will be added soon.
* Adds various tests for the above
2024-07-29 13:14:46 -04:00
Kyle Edwards
d3cc815c98 CMP0153: Add suggestion to use execute_process() 2023-10-27 09:43:18 -04:00
Kyle Edwards
ff12a57d5e exec_program(): Remove by policy CMP0153 2023-07-25 11:09:56 -04:00
Craig Scott
99b2ccf80d cmake_file_api: New project command
Projects can use the new command to request file API replies for the current
run. No query files are generated, the query is tracked internally. Replies are
created in the file system at generation time in the usual way.

Fixes: #24951
2023-06-05 06:20:50 -04:00
Brad King
914d21de58 bootstrap: Enable add_compile_definitions command
Make the command available to CMake's own CMake code.
2022-09-22 09:23:50 -04:00
Marc Chevrier
44a2f3f332 Add new flow-control commands for variables and policies scopes management
Add block() and endblock() commands offering the capability to create
new scopes for variables and/or policies.

Fixes: #20171
2022-08-22 16:25:53 +02:00
Brad King
e73c8eaff2 cmTry{Compile,Run}Command: Port away from legacy cmCommand
Convert the command entry points to free functions.
2022-07-26 15:09:48 -04:00
Brad King
6458a32242 bootstrap: Enable cmake_language command to support cmake-gui with Qt 6.2
Fixes: #22721
2021-10-05 09:48:46 -04:00
Kyle Edwards
c017098d4d CMake: Allow override of unexpected non-flow-control commands
Fixes: #22310
2021-06-16 10:39:39 -04:00
Kyle Edwards
8aee7fdb32 cmState: Prohibit override of flow control commands 2020-10-22 17:04:31 -04:00
Marc Chevrier
eb583b0a66 cmake_path command: path management
Fixes: #19568, #20922
2020-09-06 10:52:25 +02:00
Brad King
94c1e4fdb3 cmake_language: Rename command from cmake_command
Also rename the `INVOKE` signature to `CALL`.

Fixes: #20732
2020-05-21 13:36:52 -04:00
Cristian Adam
54e4f2ad45 cmake_command: Add command to INVOKE other commands by name
Fixes: #18392
2020-02-25 13:14:17 -05:00
Brad King
d806263578 Merge branch 'backport-3.16-toc_on_ppc' into toc_on_ppc 2019-12-09 11:41:15 -05:00
Alexander Grund
8c7b7df788 bootstrap: Add target_link_options command 2019-12-09 11:37:37 -05:00
Charles Barto
5e9ecaae0e load_cache: Allow READ_WITH_PREFIX mode in cmake scripts 2019-11-19 14:39:00 -05:00
Kitware Robot
ed98209ddc Revise include order using clang-format-6.0
Run the `clang-format.bash` script to update our C and C++ code to a new
include order `.clang-format`.  Use `clang-format` version 6.0.
2019-10-01 12:26:36 -04:00
Regina Pfeifer
9d1a1bc495 cmTarget*: Port away from cmCommand 2019-09-26 13:27:55 -04:00
Regina Pfeifer
920f0dd83a cmInstallCommand: Port away from cmCommand 2019-09-21 05:20:59 +02:00
Regina Pfeifer
1dd31297ca cmTargetLinkLibrariesCommand: Port away from cmCommand 2019-09-21 05:15:26 +02:00
Regina Pfeifer
d5c63f073f cmSourceGroupCommand: Port away from cmCommand 2019-09-21 05:14:42 +02:00
Regina Pfeifer
42e413bcbb cmSetTargetPropertiesCommand: Port away from cmCommand 2019-09-21 05:14:05 +02:00
Regina Pfeifer
77aa75b8dc cmProjectCommand: Port away from cmCommand 2019-09-21 05:13:30 +02:00
Regina Pfeifer
9c521088df cmLoadCacheCommand: Port away from cmCommand 2019-09-21 05:12:54 +02:00
Regina Pfeifer
fcfec154ac cmLinkDirectoriesCommand: Port away from cmCommand 2019-09-21 05:12:31 +02:00
Regina Pfeifer
d038beec21 cmIncludeDirectoryCommand: Port away from cmCommand 2019-09-21 05:11:44 +02:00
Regina Pfeifer
fdc3ba4583 cmExportCommand: Port away from cmCommand 2019-09-21 05:11:08 +02:00
Marc Chevrier
c688b401d3 cmstd: Modernize CMake system headers
Provide a standardized way to handle the C++ "standard" headers
customized to be used with current CMake C++ standard constraints.
Offer under directory `cm` headers which can be used as direct
replacements of the standard ones.  For example:

    #include <cm/string_view>

can be used safely for CMake development in place of the `<string_view>`
standard header.

Fixes: #19491
2019-09-20 10:01:37 -04:00
Regina Pfeifer
a81e9a0ced cmSubdirCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
573cd4e4b4 cmSetTestsPropertiesCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
95f23ea5d5 cmSetSourceFilesPropertiesCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
706400d417 cmRemoveDefinitionsCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
7f86990262 cmQTWrapUICommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
56bfb8de5d cmQTWrapCPPCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
83b3f76a3b cmLinkLibrariesCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
b85407ae76 cmInstallTargetsCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
d55319c01d cmInstallProgramsCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
fb5affe085 cmInstallFilesCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
242d876d7b cmIncludeRegularExpressionCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
06a2e764f0 cmIncludeExternalMSProjectCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
b46970cfe9 cmGetTestPropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
0b95c64e43 cmGetTargetPropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
e4c67981ac cmGetSourceFilePropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
36b939db68 cmFLTKWrapUICommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
28cf1271ed cmEnableLanguageCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
41b0d60f48 cmDefinePropertyCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
f717e1fccf cmCreateTestSourceList: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
f0ecb12398 cmBuildCommand: Port away from cmCommand
Ref: #19499
2019-09-12 18:16:17 +02:00
Regina Pfeifer
8a18bb7cdf cmFind*: Port away from cmCommand 2019-09-10 22:13:11 +02:00
Brad King
fa36e2151d Merge topic 'precompile-headers'
8da78d4efe Precompile headers: Update documentation
5772930164 Precompile headers: Add unit tests
519606704e Precompile headers: Add support for Visual Studio generators
28be170fbc Precompile headers: Add support for Xcode generator
b8626261e9 Precompile headers: Add methods to generate PCH sources
375d01c680 PCH: add example/test
9b6797e71d PCH: add target_precompile_headers command
0467a2f91b PCH: add PRECOMPILE_HEADERS to special properties

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Daniel Pfeifer <daniel@pfeifer-mail.de>
Acked-by: Ivan171 <heavenandhell171@gmail.com>
Acked-by: Stanislav Ershov <digital.stream.of.mind@gmail.com>
Acked-by: Steve Mokris <smokris@softpixel.com>
Acked-by: Evgeniy Dushistov <dushistov@mail.ru>
Acked-by: Danila Malyutin <flashmozzg@gmail.com>
Acked-by: Viktor Kirilov <vik.kirilov@gmail.com>
Acked-by: Lucas Zhao <zhaopf6@163.com>
Merge-request: !3553
2019-08-29 09:38:21 -04:00