Commit Graph

70615 Commits

Author SHA1 Message Date
Brad King 462e119fa3 Merge topic 'patch-CMakePushCheckState'
7771f04753 CMakePushCheckState: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10761
2025-05-13 10:16:31 -04:00
Brad King b530935bbf Merge topic 'patch-horizontal-lines'
96db6dec8b Find{BISON,FLEX}: Fix Sphinx warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10762
2025-05-13 10:08:30 -04:00
Kitware Robot 9d41f67319 CMake Nightly Date Stamp 2025-05-13 00:04:21 -04:00
Brad King 4802077fb9 Merge topic 'stdio-streams'
d6a1ff59f1 StdIo: Provide metadata about stdin, stdout, stderr streams

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10759
2025-05-12 09:37:04 -04:00
Brad King 54caca4cfa Merge topic 'configure-log-find-package-v1'
e324478e9b Tests/RunCMake/find_package: test ConfigureLog behaviors (parameters)
632661795d Tests/RunCMake/find_package: test ConfigureLog behaviors (version requests)
3b01fdb761 Tests/RunCMake/find_package: test ConfigureLog behaviors (version skips)
63a90f13c2 Tests/RunCMake/find_package: test ConfigureLog behaviors (nested config)
e594ea8dfb Tests/RunCMake/find_package: test ConfigureLog behaviors (module)
48575b554b Tests/RunCMake/find_package: test ConfigureLog behaviors (config)
8df9819839 find_package: generate `find_package-v1` configure log events
20a1f26127 cmConfigureLog: support writing array values

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10737
2025-05-12 09:30:32 -04:00
Brad King b11416a4ed Merge topic 'patch-FindDoxygen-comment'
9daa3e175d FindDoxygen: Use gerund form "Generating" instead of "Generate"

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10755
2025-05-12 09:28:04 -04:00
Brad King a1e1578e18 Merge topic 'update-kwsys'
dd162ac3be Merge branch 'upstream-KWSys' into update-kwsys
9df0cea115 KWSys 2025-05-09 (c1e5779a)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10757
2025-05-12 08:11:56 -04:00
Kitware Robot 31309ca2bb CMake Nightly Date Stamp 2025-05-12 00:14:28 -04:00
Brad King d6a1ff59f1 StdIo: Provide metadata about stdin, stdout, stderr streams
Detect the kind of terminal to which they are attached, if any.

Issue: #26924
2025-05-11 09:13:16 -04:00
Peter Kokot 96db6dec8b Find{BISON,FLEX}: Fix Sphinx warnings
This fixes Sphinx warning `Unexpected section title or transition`.

RST transition element (horizontal line) cannot appear inside some
container-like elements.
2025-05-11 08:30:41 +02:00
Kitware Robot 528a04ec66 CMake Nightly Date Stamp 2025-05-11 00:05:10 -04:00
Peter Kokot 7771f04753 CMakePushCheckState: Extend documentation
Changes:

- Used "commands" instead of "macros".
- Removed mention of "Find Modules" and used "CMake modules" to make it
  more general.
- Improved examples descriptions a bit.
- Refactored module introduction and listed variables affected by this
  module with their descriptions.
- Added "versionadded" for CMAKE_EXTRA_INCLUDE_FILES variable as this
  variable was added to the module after the CheckTypeSize module.
2025-05-11 00:20:02 +02:00
Kitware Robot 6ea1f5013d CMake Nightly Date Stamp 2025-05-10 00:04:33 -04:00
Ben Boeckel e324478e9b Tests/RunCMake/find_package: test ConfigureLog behaviors (parameters) 2025-05-09 16:46:43 +02:00
Ben Boeckel 632661795d Tests/RunCMake/find_package: test ConfigureLog behaviors (version requests) 2025-05-09 16:46:43 +02:00
Ben Boeckel 3b01fdb761 Tests/RunCMake/find_package: test ConfigureLog behaviors (version skips) 2025-05-09 16:46:43 +02:00
Ben Boeckel 63a90f13c2 Tests/RunCMake/find_package: test ConfigureLog behaviors (nested config)
Test behavior with `Find` module packages which chain to config modules.
This emulates CMake's shipped modules which support config packages
provided by modern upstreams.
2025-05-09 16:46:43 +02:00
Ben Boeckel e594ea8dfb Tests/RunCMake/find_package: test ConfigureLog behaviors (module)
Test behavior with `Find` module packages.
2025-05-09 16:46:43 +02:00
Ben Boeckel 48575b554b Tests/RunCMake/find_package: test ConfigureLog behaviors (config)
This first test covers the basic "find a package with a config file"
behavior. Further tests will cover other behaviors.
2025-05-09 16:46:43 +02:00
Ben Boeckel 8df9819839 find_package: generate find_package-v1 configure log events
Since `find_package` is far more complex than other `find_*` commands,
it gets its own event.

Closes: #24833
2025-05-09 16:46:43 +02:00
Ben Boeckel 20a1f26127 cmConfigureLog: support writing array values 2025-05-09 16:44:27 +02:00
Brad King 432d51a926 Merge branch 'release-4.0' 2025-05-09 09:53:20 -04:00
Brad King ec2d412052 Merge branch 'release-3.31' 2025-05-09 09:53:15 -04:00
Brad King e966e2ccbb Merge branch 'release-3.31' into release-4.0 2025-05-09 09:53:06 -04:00
Brad King 4da8a5cc93 Merge branch 'release-4.0' 2025-05-09 09:51:51 -04:00
Brad King 02ada9988e Merge topic 'backport-kwsys-SystemInformation-s390x'
b64548eedc KWSys: Backport "Fix GetNumberOfLogicalCPU on s390x" to CMake 3.31

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10758
2025-05-09 09:51:51 -04:00
Brad King 3e06fdbbb6 Merge topic 'backport-kwsys-SystemInformation-s390x' into release-4.0
b64548eedc KWSys: Backport "Fix GetNumberOfLogicalCPU on s390x" to CMake 3.31

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10758
2025-05-09 09:51:49 -04:00
Brad King 23e8090aa4 Merge topic 'backport-kwsys-SystemInformation-s390x' into release-3.31
b64548eedc KWSys: Backport "Fix GetNumberOfLogicalCPU on s390x" to CMake 3.31

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10758
2025-05-09 09:33:56 -04:00
Brad King 151a635325 Merge topic 'stdio-init'
cef4676d3a StdIo: Factor out helper to initialize stdin, stdout, and stderr

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10753
2025-05-09 09:25:01 -04:00
Tom Stellard b64548eedc KWSys: Backport "Fix GetNumberOfLogicalCPU on s390x" to CMake 3.31
The format of `/proc/cpuinfo` is different on `s390x` than other
architectures.

Issue: #26619
2025-05-09 09:14:14 -04:00
Brad King 6bc5d6d14f Merge topic 'cm-re-debugging'
fa1349267a cmredbg: add a tool to help debug `RunCMake` output matching

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10751
2025-05-09 09:07:20 -04:00
Brad King dd162ac3be Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2025-05-09 (c1e5779a)
2025-05-09 08:58:22 -04:00
KWSys Upstream 9df0cea115 KWSys 2025-05-09 (c1e5779a)
Code extracted from:

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

at commit c1e5779a296730461dd8c8584dfb44476e8e3ccd (master).

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

Daniel Pfeifer (1):
      c5bb3c4e SystemInformation: Strip trailing whitespace from ModelName
2025-05-09 08:58:22 -04:00
Kitware Robot 17c484d94c CMake Nightly Date Stamp 2025-05-09 00:04:31 -04:00
Peter Kokot 9daa3e175d FindDoxygen: Use gerund form "Generating" instead of "Generate"
This aligns the default comment produced by doxygen_add_docs() a bit
with the other CMake comments used at build phase.
2025-05-08 22:36:18 +02:00
Brad King cef4676d3a StdIo: Factor out helper to initialize stdin, stdout, and stderr
Move logic from commit c85524a94a (Ensure stdin, stdout, and stderr pipes
are always open, 2019-05-02, v3.15.0-rc1~171^2) and commit 96010cc968
(Ensure stdin, stdout, stderr FILE streams are open on Windows, 2024-01-24,
v3.29.0-rc1~65^2) to a dedicated source.  Expose it through an `Init` class
constructor to make it optionally available during static initialization.

Issue: #26924
2025-05-08 13:39:48 -04:00
Brad King dd835c8b2b Merge topic 'FindJasper-imported-target'
ecd4e0ff16 FindJasper: Fix importing Release and Debug configurations together

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10752
2025-05-08 09:04:53 -04:00
Ben Boeckel fa1349267a cmredbg: add a tool to help debug RunCMake output matching
Finding small errors in `RunCMake` outputs against the output is a
tedious task. Add a small tool that sets up a simple `tmux` window setup
to help debug them.
2025-05-08 13:20:44 +02:00
Kitware Robot 54ca95a7fc CMake Nightly Date Stamp 2025-05-08 00:04:39 -04:00
Brad King ecd4e0ff16 FindJasper: Fix importing Release and Debug configurations together
In commit 6e8754c625 (FindJasper: Add IMPORTED target, 2021-10-06,
v3.22.0-rc1~20^2) we set `IMPORTED_LOCATION` for both.  Instead,
set `IMPORTED_LOCATION_{RELEASE,DEBUG}`.

Issue: #20601
Reported-by: Craig Scott <craig.scott@crascit.com>
2025-05-07 09:51:17 -04:00
Brad King d182ad0a90 Merge topic 'FindJasper-no-jpeg'
324ab428fa FindJasper: Do not require JPEG libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10750
2025-05-07 09:46:43 -04:00
Brad King 4d51ad2b0a Merge topic 'install-DIRECTORY-exclude-empty'
b70ef48b27 install(DIRECTORY): Add EXCLUDE_EMPTY_DIRECTORIES option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !10683
2025-05-07 09:45:42 -04:00
Brad King b613318b80 Merge topic 'patch-GenerateExportHeader-module-path'
ac9585e13f GenerateExportHeader: Use CMAKE_CURRENT_FUNCTION_LIST_DIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10749
2025-05-07 09:43:27 -04:00
Brad King b7a013af51 Merge topic 'patch-GenerateExportHeader'
12ec3270c4 GenerateExportHeader: Extend documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10747
2025-05-07 09:41:39 -04:00
Brad King 5d89c182fa Merge topic 'ci-linkcheck'
1b491dc4cb ci: Do not linkcheck www.gnu.org URLs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10748
2025-05-07 09:38:35 -04:00
Kitware Robot 4cf27ab863 CMake Nightly Date Stamp 2025-05-07 00:07:49 -04:00
Brad King 324ab428fa FindJasper: Do not require JPEG libraries
Jasper can be built without a dependency on JPEG.  Also, we have not
been expressing the dependency on the `Jasper::Jasper` imported target
anyway.

Fixes: #26915
2025-05-06 16:53:50 -04:00
Peter Kokot ac9585e13f GenerateExportHeader: Use CMAKE_CURRENT_FUNCTION_LIST_DIR
This replaces CMake variable _GENERATE_EXPORT_HEADER_MODULE_DIR defined
on the module inclusion and uses CMAKE_CURRENT_FUNCTION_LIST_DIR to get
the module directory, so the module can be more flexibly included in
projects not worrying about the variable scopes of where
include(GenerateExportHeader) and generate_export_header() are called.
2025-05-06 18:14:16 +02:00
Hao Dong b70ef48b27 install(DIRECTORY): Add EXCLUDE_EMPTY_DIRECTORIES option
EXCLUDE_EMPTY_DIRECTORIES option excludes empty directories under the
directory to install. A directory is considered not empty if and only if
the directory contains at least one file or one symbolic link or one
none-empty sub-directory.

Closes: #19189
2025-05-06 10:59:24 -04:00
Brad King 2a4c5923ef Merge topic 'doc-install-DIRECTORY'
0fb355143e Help: Reformat install(DIRECTORY) options as a definition list

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !10746
2025-05-06 09:45:06 -04:00