Brad King
ccfa403859
Merge topic 'instrumentation-presets-hooks' into release-4.0
...
45d3ffaa95
instrumentation: Use auto for variables holding closures
d75ccd9f8d
instrumentation: Fix docs for ctest --collect-instrumentation option
a2232db802
instrumentation: Make hooks compatible with presets
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10352
2025-02-18 09:49:44 -05:00
Brad King
d40e1a0682
Merge topic 'policy_max-docs' into release-4.0
...
48095c623f
Help/cmake_minimum_required: clarify policy_max `versionadded` note
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10363
2025-02-18 09:43:23 -05:00
Ben Boeckel
48095c623f
Help/cmake_minimum_required: clarify policy_max versionadded
note
...
While the prose clarifies this below, a quick glance at the docs can
make one believe that `...3.10` has no sensible use. However, it is
still useful to tell CMake 3.12 and up that at least 3.10 behavior is
accepted.
2025-02-18 06:20:32 +01:00
Martin Duffy
d75ccd9f8d
instrumentation: Fix docs for ctest --collect-instrumentation option
2025-02-17 11:03:28 -05:00
Brad King
b5374e0405
Help: Fix typo in 4.0 release notes
...
Reported-by: Craig Scott <craig.scott@crascit.com>
2025-02-17 10:35:20 -05:00
Brad King
4300d08b20
Merge topic 'instrumentation_cdash' into release-4.0
...
a6d4a9a2ae
ctest: Include cmake instrumentation data in XML files
85a63143ed
instrument: don't report target=TARGET_NAME
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10332
2025-02-16 10:58:11 -05:00
Brad King
28f1da4b25
ci: Add jobs to build sunos-{i386,sparc} binaries
2025-02-15 07:28:07 -05:00
Zack Galbreath
a6d4a9a2ae
ctest: Include cmake instrumentation data in XML files
2025-02-15 06:25:12 -05:00
Zack Galbreath
85a63143ed
instrument: don't report target=TARGET_NAME
...
Remove the erroneous default target name when instrumenting
custom commands.
2025-02-15 06:21:58 -05:00
Brad King
47689e9253
Merge topic 'policy-version-var' into release-4.0
...
1a35351125
Add CMAKE_POLICY_VERSION_MINIMUM to help configure outdated projects
d723198539
Help: De-duplicate policy version documentation
e5d29e9e00
Help: Drop cmake_minimum_required pre-2.4 behavior
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10343
2025-02-14 09:32:33 -05:00
Brad King
1a35351125
Add CMAKE_POLICY_VERSION_MINIMUM to help configure outdated projects
...
Provide packagers and end users with a way to try configuring projects that
have not been updated to set their policy version to a supported level.
Closes : #26698
2025-02-13 14:00:26 -05:00
Brad King
d723198539
Help: De-duplicate policy version documentation
2025-02-13 12:36:54 -05:00
Brad King
e5d29e9e00
Help: Drop cmake_minimum_required pre-2.4 behavior
...
The long outdated pre-2.4 compatibility behavior is no longer relevant
since CMake 4.0 dropped support for pre-3.5 compatibility.
2025-02-13 12:22:21 -05:00
Alex Neundorf
8905157694
Help: Link CMAKE_CURRENT_LIST_(DIR|FILE|LINE) to/from FUNCTION-equivalents
2025-02-13 09:46:20 -05:00
Brad King
3f2386db2b
Merge topic 'find-cps-version' into release-4.0
...
3e6466eb16
find_package: Honor version requests when finding CPS packages
7a0e698384
find_package: Fix CPS version parsing
35a7ed125b
find_package: Fix reporting of rejected CPS files' version
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10297
2025-02-13 09:33:04 -05:00
Brad King
f45c1384cb
Merge topic 'doc-header-only' into release-4.0
...
2d5f2c9311
Help: Make cmake-buildsystem(7) header-only examples consistent
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10333
2025-02-13 09:30:55 -05:00
Matthew Woehlke
3e6466eb16
find_package: Honor version requests when finding CPS packages
...
Teach find_package to check a CPS package's version (when provided)
against a version request given to the find_package invocation.
2025-02-12 11:36:41 -05:00
Brad King
1d274d34b9
Merge topic 'instrumentation-build-snippet' into release-4.0
...
c8e319d08c
instrumentation: Add experimental notes to docs
f777af7734
instrumentation: Update docs for available snippets
2299b2fcab
instrumentation: Add build snippet
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10328
2025-02-12 09:43:17 -05:00
Brad King
33b3fb0876
Merge topic 'help-find-library' into release-4.0
...
4b7ed0ec79
Help: Clarify find_library() behavior for suffixed libraries
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10322
2025-02-12 09:30:30 -05:00
Brad King
ae103956b0
Merge topic 'doc-target_link_libraries' into release-4.0
...
1d07da0912
Help: Clarify context of target_link_libraries pre-4.0 behavior documentation
b7dc28cb8c
Help: Drop target_link_libraries redundant prose on debug/optimized keywords
b4bac3018f
Help: Drop target_link_libraries mention of CMP0003 and CMP0004
639eee1a0c
Help: Call out target_link_libraries legacy signatures earlier
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Yegor Yefremov <yegorslists@googlemail.com>
Merge-request: !10326
2025-02-12 09:28:50 -05:00
Patrik Huber
2d5f2c9311
Help: Make cmake-buildsystem(7) header-only examples consistent
...
Extend commit 93696d0f2e
(Help: Restore cmake-buildsystem(7) header-only
library example, 2023-01-13, v3.25.2~3^2) to cover a second part of the
example from commit 4b25a0d512
(Help/manual: Update header-only library
example, 2022-04-22, v3.24.0-rc1~220^2).
Issue: #24319
2025-02-12 09:14:41 -05:00
Brad King
7e5a80c7ff
Merge topic 'execute_process-cmd-bat' into release-4.0
...
b902fbd0c6
execute_process: Clarify when a Windows command interpreter is used
e388ed687a
execute_process: Improve invocation of .cmd/.bat with spaces
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Nikita Nemkin <nikita@nemkin.ru>
Acked-by: Alexey Edelev <alexey.edelev@qt.io>
Merge-request: !10321
2025-02-12 09:10:03 -05:00
Martin Duffy
c8e319d08c
instrumentation: Add experimental notes to docs
2025-02-11 13:47:56 -05:00
Martin Duffy
f777af7734
instrumentation: Update docs for available snippets
2025-02-11 13:47:20 -05:00
Martin Duffy
2299b2fcab
instrumentation: Add build snippet
...
Adds a new snippet generation for recording the full time spent waiting for
`ninja` or `make` invocations to finish.
2025-02-11 13:31:28 -05:00
Brad King
1d07da0912
Help: Clarify context of target_link_libraries pre-4.0 behavior documentation
...
Update paragraphs that exist only to document pre-4.0 behavior to
explicitly state so.
Fixes : #26679
2025-02-11 09:30:57 -05:00
Brad King
b7dc28cb8c
Help: Drop target_link_libraries redundant prose on debug/optimized keywords
...
This is already documented in the overview, and does not need to be
repeated for a specific signature.
Issue: #26679
2025-02-11 09:30:55 -05:00
Brad King
b4bac3018f
Help: Drop target_link_libraries mention of CMP0003 and CMP0004
...
These policies have been removed by CMake 4.0 and have not been
practically relevant in many years.
Issue: #26679
2025-02-11 09:24:07 -05:00
Brad King
639eee1a0c
Help: Call out target_link_libraries legacy signatures earlier
2025-02-11 09:23:06 -05:00
Nikita Nemkin
4b7ed0ec79
Help: Clarify find_library() behavior for suffixed libraries
...
The name is used as-is only if it contains a recognized suffix.
Clarify this behavior and add links to the relevant variables.
Fixes : #18401
2025-02-11 08:50:59 -05:00
Brad King
b2674f3b38
Merge topic 'instrumentation-doc-fixes' into release-4.0
...
32e9d27c88
instrumentation: Remove undocumented binaryDir field from snippets
d88458b5ea
instrumentation: Improve documentation for CMake Instrumentation
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10320
2025-02-11 07:46:46 -05:00
Brad King
2baab9b99f
Merge topic 'print-presets-log-level' into release-4.0
...
5303ad3823
Presets: Only print presets variables for verbose log level or higher
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10315
2025-02-11 07:45:21 -05:00
Brad King
b902fbd0c6
execute_process: Clarify when a Windows command interpreter is used
...
We've always executed `.bat` and `.cmd` files through `cmd /c`, but
previously it was implicit in undocumented `CreateProcessW` behavior.
2025-02-11 07:26:56 -05:00
Brad King
e388ed687a
execute_process: Improve invocation of .cmd/.bat with spaces
...
Extend the fix from commit 74c9d40876
(execute_process: Fix invocation
of .cmd/.bat with spaces, 2025-01-31) to work without relying on
conversion to a "short path", which may not exist. Instead, extending
the `cmd /c` wrapper to `cmd /c call` seems to support spaces directly.
Suggested-by: Alexandru Croitor <alexandru.croitor@qt.io>
Fixes : #26655
2025-02-10 19:44:19 -05:00
Brad King
120e26b828
Merge topic 'doc-execute_process-CMP0176-version' into release-4.0
...
5a2c0407b8
Help: Clarify when execute_process ENCODING UTF-8 became the default
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10316
2025-02-10 19:02:40 -05:00
Martin Duffy
d88458b5ea
instrumentation: Improve documentation for CMake Instrumentation
2025-02-10 16:57:45 -05:00
AJIOB
5a2c0407b8
Help: Clarify when execute_process ENCODING UTF-8 became the default
...
In commit e782811cfe
(execute_process: Change default ENCODING to UTF-8,
2024-09-13, v3.31.0-rc1~94^2) we implied this by the version ranges in
the older defaults. State it explicitly.
2025-02-10 16:18:16 -05:00
Brad King
640cf691fe
Merge topic 'instrumentation-build-config' into release-4.0
...
9689155a05
instrumentation: Add Config value to snippet data
ee3a55fc48
cmMakefileGenerator: Update GetConfigName to return const reference
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10300
2025-02-10 08:24:59 -05:00
Craig Scott
5303ad3823
Presets: Only print presets variables for verbose log level or higher
...
Fixes : #26664
2025-02-10 22:56:55 +11:00
Martin Duffy
9689155a05
instrumentation: Add Config value to snippet data
2025-02-09 12:29:09 -05:00
Brad King
6f7341ed27
CPack/WIX: Replace documentation links with their permanent redirects
2025-02-08 09:39:02 -05:00
Aditya Vidyadhar Kamath
ff03db6657
AIX: Add platform id variables 'AIX' and 'CMAKE_HOST_AIX'
...
This allows projects to use `if(AIX)` blocks instead of spelling
out `if(CMAKE_SYSTEM_NAME STREQUAL "AIX")`. We already have similar
variables for many other platforms.
2025-02-07 11:10:43 -05:00
Brad King
e74ff65385
Merge topic 'instrumentation-make-hooks' into release-4.0
...
314440c320
instrumentation: Run preBuild and postBuild hooks before and after make
6598248da7
instrumentation: Avoid busy-wait on postBuild hook
f8339cb944
instrumentation: Enable tests on more Makefile generators
0fbb927bdd
instrumentation: Disable preBuild and postBuild hooks on Windows
a13be1301f
Tests/RunCMake/Instrumentation: Improve quoting and escaping in CMake code
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10295
2025-02-07 08:32:04 -05:00
Martin Duffy
314440c320
instrumentation: Run preBuild and postBuild hooks before and after make
...
Updates the preBuild and postBuild instrumentation hooks to run before and
after make is invoked.
2025-02-06 09:49:09 -05:00
Martin Duffy
0fbb927bdd
instrumentation: Disable preBuild and postBuild hooks on Windows
...
The implementation does not work on Windows.
Issue: #26668
2025-02-06 07:46:09 -05:00
Brad King
410513d7cf
Help: Drop development topic notes to prepare release
...
Release versions do not have the development topic section of
the CMake Release Notes index page.
2025-02-05 11:41:08 -05:00
Brad King
5fdd917f8a
Help: Update Sphinx versionadded directives for 4.0 release
...
Run the script:
Utilities/Sphinx/update_versions.py --since v3.31.0 --overwrite
Manually renumber `3.32` to `4.0` since the script is meant for
minor version increments. Also filter out changes to documents
that were added for long-existing variables.
2025-02-05 09:17:06 -05:00
Brad King
fb69ed725e
Help: Organize and revise 4.0 release notes
...
Add section headers similar to the 3.31release notes and move each
individual bullet into an appropriate section. Revise a few bullets.
2025-02-05 09:15:16 -05:00
Brad King
1191647a0e
Help: Consolidate 4.0 release notes
...
Run the `Utilities/Release/consolidate-relnotes.bash` script to move
notes from `Help/release/dev/*` into `Help/release/4.0.rst`.
2025-02-05 09:11:41 -05:00
Brad King
7065e7a555
Merge topic 'instrumentation-build-hooks'
...
2680f30caf
instrumentation: Allow multiple CALLBACK arguments
fc1d55f6a5
instrumentation: Add preBuild and postBuild hooks for ninja
f62a4ab2ee
instrumentation: Refactor cmInstrumentation constructor and usage
c57d1752d4
cmUVProcessChain: Add Detached option for spawning daemons
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10230
2025-02-05 09:08:33 -05:00