Commit Graph

68145 Commits

Author SHA1 Message Date
Brad King
4bfc22f30a Merge topic 'various-refactorings'
b48d5aeae7 find_*: Improve error message quoting consistency
d6d7ac51c8 cmFindPackageCommand.cxx: Optimize `cmStrCat()` calls
c3c9bc035c cmSearchPath: Drop unused parameter of `ExtractWithout` method
15b0feb704 cmFindCommon.cxx: Small optimizations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10043
2024-11-28 09:20:44 -05:00
Brad King
dbe4b11683 Merge branch 'release-3.31' 2024-11-28 09:19:02 -05:00
Brad King
bf37d5f93a Merge topic 'tutorial-step-7-todo-4'
dccf2bdb75 Tutorial: Restore TODO 4 comment in step 7

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Betsy McPhail <betsy.mcphail@kitware.com>
Merge-request: !10045
2024-11-28 09:19:01 -05:00
Brad King
75b3cc67c9 Merge topic 'tutorial-step-7-todo-4' into release-3.31
dccf2bdb75 Tutorial: Restore TODO 4 comment in step 7

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Betsy McPhail <betsy.mcphail@kitware.com>
Merge-request: !10045
2024-11-28 09:19:00 -05:00
Kitware Robot
8129f9a5b3 CMake Nightly Date Stamp 2024-11-28 00:01:12 -05:00
Brice Decaestecker
dccf2bdb75 Tutorial: Restore TODO 4 comment in step 7
Restore a comment added by commit f9ef15f3dc (Tutorial: Update step 7
style, 2022-10-07, v3.26.0-rc1~482^2) that was accidentally removed by
commit 8ddf32196c (Tutorial: Refactor MathFunctions code, 2023-02-10,
v3.27.0-rc1~441^2).
2024-11-27 09:28:34 -05:00
Brad King
e0fd630e93 Merge topic 'fphsa-refactorings'
a67df19d82 FPHSA: Consistent quoting in reported messages
440d4446f5 FPHSA: Consistent character case when mentioning the command name
998d5b1ad0 FPHSA: Consistent style for CMake command calls
c1d49b3f3c FPHSA: Refactor to use `ZIP_LISTS`

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10044
2024-11-27 09:09:28 -05:00
Brad King
8a0ebc29da Merge topic 'FeatureSummary-condition-syntax'
6a7d5e414d FeatureSummary: Introduce policy CMP0183 for full Condition Syntax

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10031
2024-11-27 09:08:29 -05:00
Brad King
0afe2f12f6 Merge topic 'FindGDAL-deprecate'
7e2aee4458 FindGDAL: Document as deprecated in favor of upstream CMake package

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10040
2024-11-27 09:06:19 -05:00
Brad King
75c8b0202e Merge topic 'find_package_version_range_limitation'
041537e5ce Help: Clarify find_package version range limitation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10041
2024-11-27 09:03:39 -05:00
Brad King
027bc310f5 Merge topic 'get_filename_component-REALPATH-symlink-parent'
c554437733 get_filename_component: Fix REALPATH for .. after symlink

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10025
2024-11-27 09:02:39 -05:00
Alex Turbov
b48d5aeae7 find_*: Improve error message quoting consistency
Some error messages (Windows registry related) of the `find_xxx` and
`cmake_host_system_information` commands, reported keywords in quotes,
while most commands did not.
2024-11-27 08:30:15 -05:00
Alex Turbov
d6d7ac51c8 cmFindPackageCommand.cxx: Optimize cmStrCat() calls 2024-11-27 08:30:15 -05:00
Alex Turbov
c3c9bc035c cmSearchPath: Drop unused parameter of ExtractWithout method
Also,

- Replace `std::set::count()` w/ `find()`
- Replace `push_back` w/ `emplace`
2024-11-27 08:30:14 -05:00
Alex Turbov
15b0feb704 cmFindCommon.cxx: Small optimizations 2024-11-27 08:28:51 -05:00
Kitware Robot
947317f809 CMake Nightly Date Stamp 2024-11-27 00:01:16 -05:00
Alex Turbov
a67df19d82 FPHSA: Consistent quoting in reported messages
Command names are not enclosed into quotes/backticks and have `()`
at the end. Named arguments (keywords) have no quotes as well.
2024-11-26 23:40:01 +04:00
Peter Kokot
6a7d5e414d FeatureSummary: Introduce policy CMP0183 for full Condition Syntax
Closes: #26468
2024-11-26 13:19:25 -05:00
SunBlack
7e2aee4458 FindGDAL: Document as deprecated in favor of upstream CMake package
Issue: #26471
2024-11-26 13:13:20 -05:00
Alex Turbov
440d4446f5 FPHSA: Consistent character case when mentioning the command name 2024-11-26 19:58:25 +04:00
Alex Turbov
998d5b1ad0 FPHSA: Consistent style for CMake command calls
No space after a command name and before `()`!
2024-11-26 19:58:18 +04:00
Alex Turbov
c1d49b3f3c FPHSA: Refactor to use ZIP_LISTS 2024-11-26 19:58:14 +04:00
SunBlack
041537e5ce Help: Clarify find_package version range limitation
Issue: #26470
2024-11-26 09:25:15 -05:00
Brad King
467d6f00cc Merge topic 'CheckPIESupported-Add-PIE-compile-flags'
a322aead0f CheckPIESupported: ensure PIE compile flags are specified

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10034
2024-11-26 08:56:47 -05:00
Brad King
bf616516bf Merge topic 'doc-EXCLUDE_FROM_ALL-wording'
ae33faa330 Help/prop_dir/EXCLUDE_FROM_ALL: Minor wording fix

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10036
2024-11-26 08:55:57 -05:00
Brad King
a9fe9bbe6b Merge topic 'ctest-show-properties'
7b041f7fe8 ctest: Print GENERATED_RESOURCE_SPEC_FILE property in show-only output
733808150b ctest: Print custom timeout signal properties in show-only output
57587b3863 Tests/RunCMake/CTestCommandLine: Fix python string literal syntax

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10035
2024-11-26 08:55:02 -05:00
Brad King
6d42c0618f Merge topic 'clean-up-saerch-helper-lifetime'
ea28b30e04 find_package: Allow cmDirectoryListGenerator::Names to be nullptr

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !10032
2024-11-26 08:53:16 -05:00
Brad King
1f8ad70230 Merge topic 'rename-find_package-test'
521190a38d Tests: Rename find_package test

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10033
2024-11-26 08:51:59 -05:00
U2FsdGVkX1
c554437733 get_filename_component: Fix REALPATH for .. after symlink
Fixes: #26472
2024-11-26 06:17:15 -05:00
Kitware Robot
08c0fcb4d0 CMake Nightly Date Stamp 2024-11-26 00:01:13 -05:00
Nuno Nobre
ae33faa330 Help/prop_dir/EXCLUDE_FROM_ALL: Minor wording fix 2024-11-25 16:35:25 -05:00
Brad King
7b041f7fe8 ctest: Print GENERATED_RESOURCE_SPEC_FILE property in show-only output
This was missed in commit c8c1dd0d95 (CTest: Add ability to dynamically
generate resource spec file, 2023-07-20, v3.28.0-rc1~233^2).
2024-11-25 14:18:07 -05:00
Brad King
733808150b ctest: Print custom timeout signal properties in show-only output
This was missed in commit 54c5654f7d (ctest: Optionally terminate tests
with a custom signal on timeout, 2023-05-11, v3.27.0-rc1~18^2).
2024-11-25 14:17:34 -05:00
Matthew Woehlke
ea28b30e04 find_package: Allow cmDirectoryListGenerator::Names to be nullptr
Change cmDirectoryListGenerator::Names to be a pointer rather than a
reference wrapper. This allows it to be a null pointer, which allows
cmAnyDirectoryListGenerator to pass a nullptr rather than needing to
construct and hold an empty list just to satisfy the reference being
non-null. Importantly, it also make it more obvious that anyone
constructing a cmDirectoryListGenerator or subcless thereof needs to
pass something that isn't going to immediately go out of scope.
2024-11-25 12:41:56 -05:00
Brad King
57587b3863 Tests/RunCMake/CTestCommandLine: Fix python string literal syntax 2024-11-25 12:15:29 -05:00
Brad King
508817037d Merge topic 'aix-archive-shared-libraries'
2c22aae14b Tests/RunCMake: Enable CMP0182 in test cases on AIX
5c78623143 AIX: Enable shared library archives by default
7a05e8e994 Help: Reword AIX_SHARED_LIBRARY_ARCHIVE to avoid assuming a default
655a245d60 Tests: Explicitly disable AIX_SHARED_LIBRARY_ARCHIVE in some cases

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10030
2024-11-25 10:07:20 -05:00
Brad King
bc13010e38 Merge topic 'macOS-sw_vers-stderr'
58aa659bf8 Tests/RunCMake/cmake_host_system_information: Cover macOS Malloc Debugging env
954afd528b Merge branch 'upstream-KWSys' into macOS-sw_vers-stderr
295f4b1de1 KWSys 2024-11-23 (3e9b0b88)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10029
2024-11-25 10:03:28 -05:00
Marc Chevrier
a322aead0f CheckPIESupported: ensure PIE compile flags are specified
Fixes: #26463
2024-11-25 14:24:06 +01:00
Kitware Robot
0091229ddb CMake Nightly Date Stamp 2024-11-25 00:02:02 -05:00
Kitware Robot
51f43b61bc CMake Nightly Date Stamp 2024-11-24 00:01:11 -05:00
Matthew Woehlke
521190a38d Tests: Rename find_package test
We are working on adding CPS support to find_package, which will
obviously require tests (ideally, and especially in the long term, a
non-trivial number thereof). While it would be possibly to lump these
into the already rather lengthy FindPackageTest, it seems likely they
can be kept separate. Therefore, rename FindPackageTest to
FindPackageCMakeTest so that the name FindPackageCpsTest will be
available.
2024-11-23 16:41:44 -05:00
Brad King
2c22aae14b Tests/RunCMake: Enable CMP0182 in test cases on AIX
Improve coverage of CMP0182's NEW behavior by enabling it in a large
number of CMake's tests, but not in all of them, so that the OLD
behavior remains covered by some tests too.

Issue: #26372
2024-11-23 15:23:25 -05:00
Brad King
5c78623143 AIX: Enable shared library archives by default
This is the preferred convention for shared libraries on AIX.
Add policy CMP0182 to provide compatibility.

Closes: #26372
2024-11-23 15:23:25 -05:00
Brad King
7a05e8e994 Help: Reword AIX_SHARED_LIBRARY_ARCHIVE to avoid assuming a default 2024-11-23 15:23:25 -05:00
Brad King
655a245d60 Tests: Explicitly disable AIX_SHARED_LIBRARY_ARCHIVE in some cases
We do not want AIX shared library archives in test cases that rely on
cross-platform appearance of `.so` files.
2024-11-23 15:23:25 -05:00
Brad King
58aa659bf8 Tests/RunCMake/cmake_host_system_information: Cover macOS Malloc Debugging env
On macOS, `sw_vers` may print to `stderr` based on environment variables
like `MallocGuardEdges=1`.  Add a test to verify that we do not capture
that as part of the information it prints to `stdout`.

Issue: #26466
2024-11-23 15:17:36 -05:00
Brad King
954afd528b Merge branch 'upstream-KWSys' into macOS-sw_vers-stderr
* upstream-KWSys:
  KWSys 2024-11-23 (3e9b0b88)

Fixes: #26466
2024-11-23 15:17:07 -05:00
KWSys Upstream
295f4b1de1 KWSys 2024-11-23 (3e9b0b88)
Code extracted from:

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

at commit 3e9b0b88c2284302a26073d30aafaffe8c99f320 (master).

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

Brad King (1):
      5995fd7d SystemInformation: Ignore stderr from OS query tools
2024-11-23 15:15:52 -05:00
Brad King
1412bfbf58 Merge topic 'vs-solution-items'
0bb13ba0e6 VS: Add support for Visual Studio solution items
f1bcb7276a VS: Refactor solution folder creation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10003
2024-11-23 15:13:59 -05:00
Brad King
791b681662 Merge branch 'release-3.31' 2024-11-23 15:12:52 -05:00