Commit Graph

70076 Commits

Author SHA1 Message Date
Peter Kokot bac580d4bc FindPostgreSQL: Update documentation
- Added examples section.
- Updated and synced descriptions.
- Added CMake version 3.20 that introduced the Server component.
2025-04-05 21:31:24 +02:00
Kitware Robot e2e5303fe2 CMake Nightly Date Stamp 2025-04-05 00:04:50 -04:00
Brad King 9856550232 Merge topic 'improve-cps-multiple-inclusion'
de5fa2ae53 find_package: Improve support for CPS multiple inclusion

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10586
2025-04-04 08:38:31 -04:00
Brad King 0de4a5ff4e Merge branch 'release-4.0' 2025-04-04 08:24:32 -04:00
Brad King 1a87a23ca3 Merge topic 'test-tolerate-env-Werror'
2f9211b4e4 Tests: Isolate RunCMake.LinkWarningAsError from -Werror flags in environment

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10587
2025-04-04 08:24:32 -04:00
Brad King d88b3e3ece Merge topic 'test-tolerate-env-Werror' into release-4.0
2f9211b4e4 Tests: Isolate RunCMake.LinkWarningAsError from -Werror flags in environment

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10587
2025-04-04 08:24:30 -04:00
Kitware Robot 995c633e91 CMake Nightly Date Stamp 2025-04-04 00:04:30 -04:00
Brad King 2f9211b4e4 Tests: Isolate RunCMake.LinkWarningAsError from -Werror flags in environment
Fixes: #26836
2025-04-03 15:12:26 -04:00
Matthew Woehlke de5fa2ae53 find_package: Improve support for CPS multiple inclusion
Keep track of CPS files we have imported in CMake's state, and use this
(instead of the prior, temporary work-around that used `<name>_CONFIG`)
as a guard for trying to import more than once from the same file. This
has two advantages; first, it is robust against finding the same package
name in different locations in alternating searches, and second, it
allows us to load additional appendices associated with a root package
that has already been loaded.

Fixes: #26731
2025-04-03 14:40:39 -04:00
Brad King 3abb812218 Merge branch 'release-4.0' 2025-04-03 14:06:53 -04:00
Brad King be1f4dde2e Merge topic 'find_package-cps-multiple-inclusion'
b498611902 find_package: Add minimal support for CPS multiple inclusion

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10581
2025-04-03 14:06:53 -04:00
Brad King 3e4519a4e3 Merge topic 'find_package-cps-multiple-inclusion' into release-4.0
b498611902 find_package: Add minimal support for CPS multiple inclusion

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10581
2025-04-03 14:06:51 -04:00
Brad King c40a219f71 Merge branch 'release-4.0' 2025-04-03 14:04:57 -04:00
Brad King 07970d3c64 Merge topic 'restore-home-tidle'
01f92efeb0 Restore expansion of leading '~' as home directory in input paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10580
2025-04-03 14:04:57 -04:00
Brad King 77b3c85fe8 Merge topic 'restore-home-tidle' into release-4.0
01f92efeb0 Restore expansion of leading '~' as home directory in input paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10580
2025-04-03 14:04:55 -04:00
Brad King 42e7c0aa27 Merge topic 'fix-state-reset'
acaae6d265 cmState: Improve how state is reset

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10583
2025-04-03 14:03:34 -04:00
Brad King 1736a99497 Merge topic 'patch-FindHSPELL'
c27d2bee7f FindHSPELL: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10577
2025-04-03 14:02:05 -04:00
Brad King 4ebec03bbf Merge topic 'patch-FindEXPAT'
8e91ee67d9 FindEXPAT: Update documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10578
2025-04-03 14:00:42 -04:00
Brad King 8b13fb6d58 Merge topic 'patch-CMakeDependentOption-false-confition'
7fae768c3f CMakeDependentOption: Fix documentation regarding false condition

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10579
2025-04-03 13:58:41 -04:00
Kitware Robot a2530fd955 CMake Nightly Date Stamp 2025-04-03 00:04:41 -04:00
Matthew Woehlke acaae6d265 cmState: Improve how state is reset
Modify cmState::Reset to create a fresh BuildsystemDirectoryStateType
for the root, rather than trying to reset the old one. This is less
brittle with respect to changes made to BuildsystemDirectoryStateType
(e.g. adding new members).
2025-04-02 15:18:00 -04:00
Peter Kokot 7fae768c3f CMakeDependentOption: Fix documentation regarding false condition
This fixes the commit 67055f5b3a:
- If condition is false, local variable is always set to `<else-value>`
2025-04-02 21:12:49 +02:00
Brad King 01f92efeb0 Restore expansion of leading '~' as home directory in input paths
This was accidentally dropped by commit 622596c6b2 (cmSystemTools:
Re-implement ToNormalizedPathOnDisk without translation map, 2024-10-30,
v4.0.0-rc1~528^2~5).  Previously it was done by `CollapseFullPath`.
`cm::PathResolver` intentionally does not expand `~` because it makes
sense only for transforming input paths.  Teach `ToNormalizedPathOnDisk`
to handle it directly.

Fixes: #26827
2025-04-02 14:41:48 -04:00
Matthew Woehlke b498611902 find_package: Add minimal support for CPS multiple inclusion
Do not try to load a CPS file if we've already loaded the same file.
This only works if the current `find_package` call selects the same file
as the previous most recent call, and if the user has not meddled with
the `<name>_CONFIG` variable.

Issue: #26731
2025-04-02 13:45:36 -04:00
Brad King 1063a1c603 Merge branch 'release-4.0' 2025-04-02 10:23:29 -04:00
Brad King ff5712fbfc Merge topic 'find_package-fix-nested-calls'
37823b366f find_package: Restore component requirements in nested calls

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10576
2025-04-02 10:23:28 -04:00
Brad King 7167236ba3 Merge topic 'find_package-fix-nested-calls' into release-4.0
37823b366f find_package: Restore component requirements in nested calls

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10576
2025-04-02 10:23:27 -04:00
Brad King 3178be226d Merge topic 'cmake-cache-line-parser'
a5281fd635 cmCacheManager: clarify whitespace skipping

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10571
2025-04-02 10:22:12 -04:00
Brad King caf1ddf3a6 Merge topic 'hip-debug-no-opt'
b805f55325 HIP: Fix default flags for Debug configuration

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10572
2025-04-02 10:20:48 -04:00
Brad King 1959b818ed Merge topic 'update-kwsys'
c813d47353 Merge branch 'upstream-KWSys' into update-kwsys
d64343249c KWSys 2025-04-02 (284a7281)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10574
2025-04-02 10:19:19 -04:00
Matthew Woehlke 37823b366f find_package: Restore component requirements in nested calls
Fix logic to populate required and optional components from CMake
variables when `find_package` is called in a nested context.

This was broken in commit e2a6416622 (find_package: Refactor in support
of recursion, 2024-11-29, v4.0.0-rc1~356^2), which promoted the
component sets from locals (in cmFindPackageCommand::InitialPass) to
member variables. Previously, in a nested context, these sets were
simply not filled, and we relied on the variables indicating component
requirement to already be set. When logic was added to properly fill the
sets (which is needed for CPS), it blindly dumped all components into
the required set, without actually checking whether the context had
marked the components as required or optional.

Fixes: #26824
2025-04-02 10:16:40 -04:00
Brad King 75eab5963c Merge branch 'release-4.0' 2025-04-02 10:14:22 -04:00
Brad King 48235b3257 Merge topic 'ci-xcode-16.3'
3b4adc2043 ci: update macOS jobs to use Xcode 16.3

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10575
2025-04-02 10:14:22 -04:00
Brad King bb2126ccc8 Merge topic 'ci-xcode-16.3' into release-4.0
3b4adc2043 ci: update macOS jobs to use Xcode 16.3

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10575
2025-04-02 10:14:20 -04:00
Brad King bbc181e0e3 Merge branch 'release-4.0' 2025-04-02 10:12:24 -04:00
Brad King 4e8495bc11 Merge topic 'revert-get_filename_component-REALPATH-symlink-parent'
94d65a9535 get_filename_component: Restore lexical preprocessing of REALPATH for compat

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10564
2025-04-02 10:12:24 -04:00
Brad King e0bc2f9705 Merge topic 'revert-get_filename_component-REALPATH-symlink-parent' into release-4.0
94d65a9535 get_filename_component: Restore lexical preprocessing of REALPATH for compat

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10564
2025-04-02 10:12:22 -04:00
Brad King c813d47353 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-04-02 (284a7281)
2025-04-02 08:29:55 -04:00
KWSys Upstream d64343249c KWSys 2025-04-02 (284a7281)
Code extracted from:

    https://gitlab.kitware.com/utils/kwsys.git

at commit 284a7281f1d439bf97816dcdcb19c6fe5f146d85 (master).

Upstream Shortlog
-----------------

Brad King (1):
      d68a5d3f SystemTools: Comment why ChangeDirectory does not use UNC for long paths
2025-04-02 08:29:54 -04:00
Kitware Robot d422e04b74 CMake Nightly Date Stamp 2025-04-02 00:04:40 -04:00
Peter Kokot 8e91ee67d9 FindEXPAT: Update documentation
- Added examples section.
- Module documentation synced a bit with other similar find modules.
- Descriptions synced.
2025-04-02 02:05:48 +02:00
Peter Kokot c27d2bee7f FindHSPELL: Update documentation
- Synced module description with other similar find modules.
- Added examples section
- HSPELL_DEFINITIONS variable removed from the documentation as it was
  never defined by this module.
2025-04-02 01:54:31 +02:00
Brad King 3b4adc2043 ci: update macOS jobs to use Xcode 16.3 2025-04-01 13:10:32 -04:00
Brad King b6c88c0c5d Merge topic 'patch-FindASPELL'
dd2edc3497 FindASPELL: Add components and imported targets
1056f0b166 ci: Add aspell to Debian and Fedora base images

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10543
2025-04-01 13:07:18 -04:00
Brad King 39cccd1db8 Merge topic 'patch-CMAKE_COMPILER_IS_GNU'
50e57aa4ca CMAKE_COMPILER_IS_*: Replace with CMAKE_<LANG>_COMPILER_ID

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10551
2025-04-01 13:05:54 -04:00
Brad King a569077b88 Merge topic 'patch-CMAKE_COMPILER_IS_GNU-docs'
7db3f983b3 CMAKE_COMPILER_IS_*: Add RST deprecation directives and update docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10550
2025-04-01 13:03:45 -04:00
Brad King 2afcbe9a81 Merge topic 'patch-cmake-developer-docs'
4af847a1cd Help: Refine the Foo_VERSION_STRING explanation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10568
2025-04-01 12:57:21 -04:00
Brad King 9555e315f6 Merge branch 'release-4.0' 2025-04-01 12:54:37 -04:00
Brad King 029415fc68 Merge topic 'unity-relative-paths'
f706d8064b Help: Clarify wording of UNITY_BUILD_RELOCATABLE path alternatives
20412690fb Help: Add 4.0 release note for UNITY_BUILD_RELOCATABLE
89cea1c642 Help: Document CMAKE_UNITY_BUILD_RELOCATABLE variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10570
2025-04-01 12:54:36 -04:00
Brad King faa225b63b Merge topic 'unity-relative-paths' into release-4.0
f706d8064b Help: Clarify wording of UNITY_BUILD_RELOCATABLE path alternatives
20412690fb Help: Add 4.0 release note for UNITY_BUILD_RELOCATABLE
89cea1c642 Help: Document CMAKE_UNITY_BUILD_RELOCATABLE variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10570
2025-04-01 12:54:34 -04:00