Brad King
136528aa1b
CMP0002: Remove support for OLD behavior
2025-01-17 09:28:35 -05:00
Brad King
03a215643d
CMP0001: Remove support for OLD behavior
2025-01-17 09:28:35 -05:00
Brad King
e62b6cb748
CMP0000: Remove support for OLD behavior
2025-01-17 09:28:34 -05:00
Brad King
6a1a08e634
Help: Add boilerplate text to use for removed policies
2025-01-17 09:28:34 -05:00
Brad King
759b55991a
Merge topic 'renumber-to-4.0'
...
bd176b430c
Renumber post-3.31 development from 3.32 to 4.0
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10183
2025-01-17 08:56:31 -05:00
Brad King
e95fce2849
Merge topic 'LINK_WARNING_AS_ERROR-extend-capabilities'
...
b350f95ecf
LINK_WARNING_AS_ERROR property: extend capabilities
216c469214
MSVC: Use dash-style flag for LINK_WARNING_AS_ERROR
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10133
2025-01-17 08:50:32 -05:00
Marc Chevrier
b350f95ecf
LINK_WARNING_AS_ERROR property: extend capabilities
...
Fixes : #26536
2025-01-16 22:35:00 +01:00
Brad King
bd176b430c
Renumber post-3.31 development from 3.32 to 4.0
...
Issue: #26613
2025-01-16 09:18:21 -05:00
Brad King
1d5c1b0023
Merge topic 'policy-cleanup'
...
b010a1fb1d
Help: Update try_compile list of automatic policies
5e9b40b6a5
Help: Update cmake-buildsystem(7) TARGET_POLICY example to a newer policy
9ffbc0e628
Tests/RunCMake/cmake_minimum_required: Generalize deprecated version case name
0eca249ac7
Tests/RunCMake: Update more cmake_minimum_required versions to 3.10
a8cf033a74
Tests/RunCMake/return: Use newer cmake_minimum_required VERSION
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10178
2025-01-16 09:01:48 -05:00
Brad King
e87c6c6259
Merge topic 'execute-process-error'
...
3ece058d97
execute_process: Allow setting default COMMAND_ERROR_IS_FATAL value
85035dd954
Help/command/execute_process: Fix definition list formatting
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10169
2025-01-16 08:59:00 -05:00
Brad King
8018f2a6c4
Merge topic 'instrumentation'
...
097d4fd1b5
instrumentation: Collect and record project build system metrics
8a3c195188
Tests/RunCMake: Add RunCMake_CHECK_ONLY Option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Alex <leha-bot@yandex.ru>
Merge-request: !9791
2025-01-16 08:55:25 -05:00
Brad King
7ea82512ca
Merge topic 'patch-GenerateExportHeader'
...
319dd29ef0
GenerateExportHeader: Use lowercase command names
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10176
2025-01-16 08:52:33 -05:00
Brad King
b010a1fb1d
Help: Update try_compile list of automatic policies
2025-01-15 11:21:21 -05:00
Brad King
5e9b40b6a5
Help: Update cmake-buildsystem(7) TARGET_POLICY example to a newer policy
2025-01-15 11:21:21 -05:00
Martin Duffy
3ece058d97
execute_process: Allow setting default COMMAND_ERROR_IS_FATAL value
...
Issue: #26576
2025-01-15 11:12:34 -05:00
Brad King
9f21775ae6
Merge topic 'fix_pic_documentation'
...
a6315790a1
Help: CMAKE_POSITION_INDEPENDENT_CODE is ignored for some targets
7e1a0739db
Help: POSITION_INDEPENDENT_CODE applies to *all* libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10172
2025-01-15 09:37:13 -05:00
Martin Duffy
097d4fd1b5
instrumentation: Collect and record project build system metrics
...
Add a feature for collecting build instrumentation for CMake projects.
Issue: #26099
2025-01-15 09:16:50 -05:00
Peter Kokot
319dd29ef0
GenerateExportHeader: Use lowercase command names
...
This syncs the command names of the GenerateExportHeader to use
lowercase style and adds few minor adjustmenst for the RST docs.
2025-01-15 09:57:05 +01:00
Andreas Hartmetz
a6315790a1
Help: CMAKE_POSITION_INDEPENDENT_CODE is ignored for some targets
...
SHARED and MODULE library targets have
POSITION_INDEPENDENT_CODE default to TRUE regardless of
CMAKE_POSITION_INDEPENDENT_CODE.
2025-01-14 18:12:47 +01:00
Andreas Hartmetz
7e1a0739db
Help: POSITION_INDEPENDENT_CODE applies to *all* libraries
...
It is sometimes useful, e.g. when linking a static library into a
shared library, it needs to be PIC.
2025-01-14 18:12:33 +01:00
Peter Kokot
04c5492cb0
FindPatch: Define imported target only for PROJECT CMAKE_ROLE
...
This enables finding the patch command when using CMake in script modes.
2025-01-14 10:17:09 -05:00
Brad King
0cca7df474
Merge topic 'patch-CMAKE_SCRIPT_MODE_FILE'
...
8ad171553b
Help: Add _See Also_ to CMAKE_SCRIPT_MODE and CMAKE_ROLE
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10166
2025-01-14 09:46:39 -05:00
Brad King
72e27a4856
Merge topic 'fix-typos-found-by-pre-commit-hooks'
...
d620d77d26
FindDoxygen: Rename `_Doxygen_dne_header` -> `_Doxygen_do_not_edit_header`
e7ff3cccea
PushToAndroidDevice.cmake: Rename `cmake_parse_arguments` prefix
bc8621d999
Fix: A lot of typos in code found by `typos`
b33beb7af5
Help: Fix some typos found by `sphinx-lint`
78e45c2db6
Style: Replace TABs with spaces for indentation in some files
74e0173f66
Tests(NuGet): Fix the test to ignore empty and space-only lines
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10151
2025-01-14 09:44:34 -05:00
Brad King
85035dd954
Help/command/execute_process: Fix definition list formatting
2025-01-13 13:34:15 -05:00
Brad King
8913b83d7f
Merge topic 'FindPython-ARTIFACTS_PREFIX'
...
9b0510fa57
FindPython: add support for multiple searches in same directory
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10157
2025-01-13 11:46:50 -05:00
Brad King
74c462b4f8
Merge topic 'xcode-scheme-test-config'
...
7d28005244
Xcode: Support for test action 'Build Configuration' scheme property
1f4e1ccbc8
Help: Move launch config scheme property to the correct section
8aaae0f643
vim: Remove duplicated keywords from cmake.vim
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10154
2025-01-13 11:37:31 -05:00
Brad King
6a800f666f
Merge topic 'CMAKE_LANG_LINK_MODE-variable-creation'
...
00932ea864
Introduce CMAKE_<LANG>_LINK_MODE variable.
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Alex <leha-bot@yandex.ru>
Merge-request: !10162
2025-01-13 11:23:32 -05:00
Brad King
eb616ed6fd
Merge topic 'fix-Fortran_BUILDING_INTRINSIC_MODULES'
...
b65930a7a7
Fortran: Add Fortran_BUILDING_INTRINSIC_MODULES for building intrinsics
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10158
2025-01-13 11:22:05 -05:00
Alex Turbov
bc8621d999
Fix: A lot of typos in code found by typos
...
Yet another great code spellchecker: https://github.com/crate-ci/typos/
(Will be added later as a `pre-commit` hook)
2025-01-12 18:49:34 +04:00
Alex Turbov
b33beb7af5
Help: Fix some typos found by sphinx-lint
...
Particularly,
- Avoid TABs in RST docs.
- Avoid words ending w/ hyphen at the right side of pharagraphs.
2025-01-12 18:49:34 +04:00
Peter Kokot
8ad171553b
Help: Add _See Also_ to CMAKE_SCRIPT_MODE and CMAKE_ROLE
2025-01-12 07:24:57 +01:00
Marc Chevrier
9b0510fa57
FindPython: add support for multiple searches in same directory
...
In some situations, like cross-compilation, it can be required to search for
the host python interpreter as well as the cross-compilation development
artifacts.
By managing different prefixes for the artifacts, multiple and independent
searches can be achieved.
2025-01-11 15:47:06 +01:00
Brad King
e6d5a518b1
Merge branch 'release-3.31'
2025-01-10 10:58:32 -05:00
Brad King
569b821a13
CMake 3.31.4
2025-01-10 09:59:02 -05:00
Brad King
675518ea81
Merge topic 'revert-genex-tco-subgraph'
...
a6b84a438f
GenEx: Revert "Limit TARGET_PROPERTY transitive closure optimization"
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10156
2025-01-10 09:21:04 -05:00
Brad King
1ebfd7ac81
Merge topic 'gcc-import-std'
...
2a0ca6a26d
ci: add jobs to test GCC 15-to-be with `import std`
469175c2e6
Experimental: recycle the `import std` UUID
a980dab9b1
gcc: support `import std`
2791b7564b
Tests/RunCMake: handle C++26 support where needed
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10023
2025-01-10 09:04:38 -05:00
Marc Chevrier
00932ea864
Introduce CMAKE_<LANG>_LINK_MODE variable.
...
This variable define how the link step is done. Possible values are:
* DRIVER: the compiler is used as driver for the link step
* LINKER: the linker is used directly for the link step.
2025-01-10 13:24:16 +01:00
Alex Turbov
b65930a7a7
Fortran: Add Fortran_BUILDING_INTRINSIC_MODULES for building intrinsics
...
In commit fe3f846e1b
(Makefiles: Add support for building Fortran
intrinsics, 2020-11-19, v3.22.0-rc1~565^2) the property was added with
incorrect spelling `Fortran_BUILDING_INSTRINSIC_MODULES`. Add a new
property with the correct spelling. Keep the old one for compatibility.
Issue: #21463
2025-01-09 15:30:00 -05:00
Brad King
a6b84a438f
GenEx: Revert "Limit TARGET_PROPERTY transitive closure optimization"
...
Revert commit 4a11772618
(GenEx: Limit TARGET_PROPERTY transitive
closure optimization to subgraphs, 2024-05-31, v3.31.0-rc1~114^2).
The change caused substantial performance regressions in some
existing use cases. Revert it pending further investigation.
Issue: #25728
Fixes : #26457
2025-01-09 11:56:20 -05:00
Cristiano Carvalheiro
7d28005244
Xcode: Support for test action 'Build Configuration' scheme property
...
Also allow scoped property checking on Xcode scheme tests to
be able to distinguish between launch and test actions build config.
2025-01-09 16:36:33 +00:00
Brad King
5733f2bfcb
Merge topic 'patch-file-make-directory'
...
d7b33ed8e2
file(MAKE_DIRECTORY): Update synopsis signature
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10145
2025-01-09 10:46:55 -05:00
Brad King
ac54f5d50d
Merge topic 'patch-found-var'
...
1a8e43d57d
FindPackageHandleStandardArgs: Clarify the FOUND_VAR option
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10134
2025-01-09 10:44:01 -05:00
Brad King
519c252bc8
Merge topic 'tutorial-step1-files-to-edit'
...
e61ba188b6
Tutorial: Add missing entry in Step 1 list of files to edit
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Nirav Nirmal <nirmalnirav@outlook.com>
Merge-request: !10135
2025-01-09 10:36:43 -05:00
Cristiano Carvalheiro
1f4e1ccbc8
Help: Move launch config scheme property to the correct section
2025-01-09 14:43:07 +00:00
Ben Boeckel
469175c2e6
Experimental: recycle the import std
UUID
...
Now that GCC is supported, update the feature UUID.
2025-01-08 16:32:14 -05:00
Nirav Nirmal
e61ba188b6
Tutorial: Add missing entry in Step 1 list of files to edit
...
Exercise 3 requires editing `TutorialConfig.h.in`.
2025-01-08 09:43:06 -05:00
Brad King
d949e7980c
Merge topic 'FindBISON-OPTIONS-keyword'
...
211cec0f20
FindBISON: Add new keyword OPTIONS
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10129
2025-01-08 09:29:38 -05:00
Peter Kokot
d7b33ed8e2
file(MAKE_DIRECTORY): Update synopsis signature
...
This syncs the signature as it provides another optional option.
2025-01-07 02:15:33 +01:00
Peter Kokot
211cec0f20
FindBISON: Add new keyword OPTIONS
...
This adds a new keyword OPTIONS which is a semicolon-separated list of
command-line options added to bison command line. This enables adding
options more intuitively. It mainly adds options as quoted arguments
which among other things enables adding paths containing spaces and
similar.
Fixes:
- https://gitlab.kitware.com/cmake/cmake/-/issues/23301
2025-01-06 06:41:57 +01:00
Peter Kokot
d63ffb4116
FindFLEX: Add new keyword OPTIONS
...
This adds a new keyword OPTIONS which is a semicolon-separated list of
command-line options added to flex command line. This enables adding
options more intuitively. It mainly adds options as quoted arguments
which among other things enables adding paths containing spaces and
similar.
Fixes:
- https://gitlab.kitware.com/cmake/cmake/-/issues/23301
2025-01-06 06:41:41 +01:00