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
54cf35a8c0
Merge topic 'doc-target_link_libraries'
...
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:52 -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
584bf096fa
Merge topic 'execute_process-cmd-bat'
...
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:04 -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
2cd962c2c4
Merge topic 'instrumentation-doc-fixes'
...
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:48 -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
7ac818927b
Merge topic 'print-presets-log-level'
...
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:23 -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
4dc7455d53
Merge topic 'doc-execute_process-CMP0176-version'
...
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:42 -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
6e337e469c
Merge topic 'instrumentation-build-config'
...
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:25:01 -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
Brad King
c935c3ff54
Merge topic 'ci-linkcheck'
...
6f7341ed27 CPack/WIX: Replace documentation links with their permanent redirects
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10308
2025-02-09 12:32:06 -05: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
Brad King
d0d15940b0
Merge topic 'aix-id-var'
...
ff03db6657 AIX: Add platform id variables 'AIX' and 'CMAKE_HOST_AIX'
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10304
2025-02-08 09:29:46 -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
516546fd0e
Merge topic 'instrumentation-make-hooks'
...
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:06 -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
21f17656ac
Help/dev: Update git command-line conventions in maintainer guide
...
Replace `git checkout` with `git switch` and `git restore`.
2025-02-05 13:09:50 -05:00
Brad King
208afbf6b8
Begin post-4.0 development
2025-02-05 11:49:36 -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
Brad King
0a17f39596
Merge topic 'cpack-archive-name'
...
7c825fd15f cpack: Respect CPACK_ARCHIVE_FILE_NAME for non-component packages
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Turbov <i.zaufi@gmail.com >
Merge-request: !10287
2025-02-05 09:06:47 -05:00
Martin Duffy
2680f30caf
instrumentation: Allow multiple CALLBACK arguments
...
Don't require quotes around CALLBACK argument and allow it to be passed
multiple times.
2025-02-04 11:15:20 -05:00
Martin Duffy
fc1d55f6a5
instrumentation: Add preBuild and postBuild hooks for ninja
...
Allows instrumentation indexing and callbacks to occur at the start or end of
every `ninja` invocation.
2025-02-04 11:15:11 -05:00
Nikita Nemkin
7c825fd15f
cpack: Respect CPACK_ARCHIVE_FILE_NAME for non-component packages
...
The variable CPACK_ARCHIVE_FILE_NAME (added in 9e06e97d30 )
only works if per-component packaging is enabled. This isn't obvious
from the documentation.
Make it also work for non-component packages and adjust documentation.
Fixes : #8769
2025-02-04 20:36:10 +05:00
Brad King
8dfb1f40b7
Merge topic 'execute_process-cmd-bat'
...
74c9d40876 execute_process: Fix invocation of .cmd/.bat with spaces
104ca10208 cmWorkerPool: Adopt MaybePrependCmdExe calls to reduce duplication
cf7ba6d43d cmWorkerPool: Convert RunCommand signature to move semantics
c091fd1420 cmUVProcessChain: Convert AddCommand signature to move semantics
c1f6b04176 cmSystemTools: Teach MaybePrependCmdExe to always use backslashes
817b3967f8 cmSystemTools: Teach MaybePrependCmdExe to return GetShortPathNameW failure
611a3000f7 cmSystemTools: Make MaybePrependCmdExe case-insensitive
98fed0f116 cmSystemTools: Adopt MaybePrependCmdExe
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10270
2025-02-04 09:02:48 -05:00
Brad King
796db3a229
Merge topic 'ExternalData-add-httpheader'
...
5106f34eed ExternalData: Add option to specify HTTP headers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10275
2025-02-04 08:59:42 -05:00
Brad King
76d874386a
Merge topic 'fix-rst-code'
...
8d8fd9de2c Help: Fix typos in RST found by the `rst-backticks` hook
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10277
2025-02-03 13:21:56 -05:00