Brad King
a4c5b91f80
FindPython{Interp,Libs}: Add policy to remove these modules
...
The `FindPythonInterp` and `FindPythonLibs` modules have been deprecated
since CMake 3.12. Add a policy to pretend they do not exist in order to
encourage projects to port to `FindPython` or `FindPython{2,3}`.
2023-03-30 12:05:09 -04:00
Brad King
4901fdb201
Merge topic 'presets-json-errors'
...
19305afd8a presets: Improve JSON parser and error messages
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: scivision <michael@scivision.dev >
Merge-request: !8290
2023-03-30 08:51:18 -04:00
Brad King
1d1ee2b049
Merge topic 'ci-FindHDF5'
...
d38c752de2 ci: Enable FindHDF5 tests on Linux builds
28c4945a8a ci: Add HDF5 to Debian and Fedora base images
ad9e151045 Tests: Add cases covering FindHDF5 variables and imported targets
0e87e6c1a4 Tests: Add FindMPI test environment modification option
ee075a53c8 FindHDF5: Record compiler wrapper checks to configure log
72915b1068 FindHDF5: Fix compiler wrapper checks with spaces in path
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8378
2023-03-30 07:22:17 -04:00
Brad King
a4e166fe7a
Merge topic 'clang-tidy-module-gitignore'
...
550f6b40bd clang-tidy module: copy .gitignore from top level
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8377
2023-03-30 07:20:38 -04:00
Brad King
770f0ef7d6
Merge topic 'codespellrc-no-count'
...
c7d978d371 ci: remove "count =" from .codespellrc
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8376
2023-03-30 07:19:56 -04:00
Brad King
dfe32d797e
Merge topic 'ninja-performance'
...
426f3295f6 Ninja: Use more efficient data structures to collect outputs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8371
2023-03-30 07:19:05 -04:00
Brad King
2f3ba93102
Merge topic 'FindOpenAL-framework'
...
f05bd762f5 ci: Enable FindOpenAL test on macOS jobs
1d06554fc6 Tests: Fix FindOpenAL test for macOS framework
5f5476ee31 FindOpenAL: Fix imported target for macOS framework
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8373
2023-03-30 06:57:10 -04:00
Kitware Robot
cecdd470a9
CMake Nightly Date Stamp
2023-03-30 00:01:08 -04:00
Brad King
d38c752de2
ci: Enable FindHDF5 tests on Linux builds
2023-03-29 17:18:30 -04:00
Brad King
28c4945a8a
ci: Add HDF5 to Debian and Fedora base images
2023-03-29 17:18:30 -04:00
Brad King
ad9e151045
Tests: Add cases covering FindHDF5 variables and imported targets
2023-03-29 17:18:30 -04:00
Brad King
0e87e6c1a4
Tests: Add FindMPI test environment modification option
...
Provide a way to configure an environment specific to this test.
Avoid setting the environment globally for it in CI jobs.
2023-03-29 17:18:30 -04:00
Brad King
ee075a53c8
FindHDF5: Record compiler wrapper checks to configure log
2023-03-29 17:18:29 -04:00
Brad King
72915b1068
FindHDF5: Fix compiler wrapper checks with spaces in path
...
Some HDF5 compiler wrappers do not support source file paths that
contain spaces. Pass source files to them using a file name in the
current working directory to avoid spaces.
2023-03-29 17:18:29 -04:00
Kyle Edwards
550f6b40bd
clang-tidy module: copy .gitignore from top level
...
Since 8b094845 , .gitignore entries have been pinned to the top-level
.gitignore file. Copy these entries into a .gitignore for the
clang-tidy module.
2023-03-29 16:32:40 -04:00
Kyle Edwards
c7d978d371
ci: remove "count =" from .codespellrc
...
Since 42445b2c , we've been printing a message for each invocation
of codespell. The count print is redundant and clutters the log.
2023-03-29 15:20:54 -04:00
Brad King
63441bb920
Merge branch 'release-3.26'
2023-03-29 14:59:59 -04:00
Brad King
bef6a27531
CMake 3.26.2
v3.26.2
2023-03-29 14:19:57 -04:00
nega
f05bd762f5
ci: Enable FindOpenAL test on macOS jobs
2023-03-29 13:42:06 -04:00
nega
1d06554fc6
Tests: Fix FindOpenAL test for macOS framework
...
- Use framework-style includes.
- Hush deprecation warnings when compiling test.
2023-03-29 13:42:02 -04:00
nega
5f5476ee31
FindOpenAL: Fix imported target for macOS framework
...
If a framework is found, specify it through `INTERFACE_LINK_LIBRARIES`
because `IMPORTED_LOCATION` requires a file and not a framework
directory.
2023-03-29 13:31:48 -04:00
Martin Duffy
19305afd8a
presets: Improve JSON parser and error messages
2023-03-29 10:41:19 -04:00
Brad King
f3e348b62e
Merge topic 'install-namelink-no-rpath'
...
9c14f14848 install(TARGETS): Do not apply installation tweaks to NAMELINK files
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8370
2023-03-29 09:15:56 -04:00
Brad King
469506aee8
Merge topic 'doc-compile-options'
...
e2830cf16b Help: Link to COMPILE_LANGUAGE genex from target_compile_options
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8369
2023-03-29 09:14:34 -04:00
Brad King
b164772f13
Merge branch 'release-3.26'
2023-03-29 09:13:33 -04:00
Brad King
d79237a580
Merge topic 'swift-old-driver'
...
006e1995eb Swift: Restore compatibility with old C++ driver
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8365
2023-03-29 09:13:33 -04:00
Brad King
0849598ff8
Merge topic 'swift-old-driver' into release-3.26
...
006e1995eb Swift: Restore compatibility with old C++ driver
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8365
2023-03-29 09:13:31 -04:00
Kitware Robot
79a8f6da5d
CMake Nightly Date Stamp
2023-03-29 00:01:08 -04:00
Nicolas van Kempen
426f3295f6
Ninja: Use more efficient data structures to collect outputs
2023-03-28 17:53:18 -04:00
Brad King
9c14f14848
install(TARGETS): Do not apply installation tweaks to NAMELINK files
...
These files are symlinks to the real binaries, and we already apply
tweaks to those. Previously we generated installation tweak code
guarded by a `NOT IS_SYMLINK` condition that is never true. Drop the
code altogether.
Add a test covering the motivating use case, in which a `POST_BUILD`
step modifies the namelink file to not actually be a symlink.
Fixes : #24647
2023-03-28 12:06:24 -04:00
Brad King
e2830cf16b
Help: Link to COMPILE_LANGUAGE genex from target_compile_options
...
Issue: #24639
2023-03-28 10:57:31 -04:00
YR Chen
006e1995eb
Swift: Restore compatibility with old C++ driver
...
The `-wmo` flag added by commit 6063428de7 (Swift: Update default build
flags, 2022-10-03, v3.26.0-rc1~585^2~1) behaves differently with the old
driver. Detect when the old driver is being used, and avoid adding that
flag.
Fixes : #24641
2023-03-28 10:02:05 -04:00
Brad King
f4b8176447
Merge topic 'lint-genex'
...
099934e313 Add generator expression support to static code analysis hooks
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8361
2023-03-28 08:18:43 -04:00
Brad King
f81cc5e2c0
Merge topic 'gitignore-cleanup'
...
8b09484588 gitignore: Pin directory exclusions to top-level
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8364
2023-03-28 08:16:07 -04:00
Brad King
3beeca8e36
Merge topic 'FindPython-Windows-ARM'
...
9913c28ebb FindPython: Add Windows/ARM support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: David Lechner <david@lechnology.com >
Merge-request: !8354
2023-03-28 08:15:14 -04:00
Brad King
eb890ba3fc
Merge topic 'file-GET_RUNTIME_DEPENDENCIES-windows-casing'
...
5922c86ed6 file(GET_RUNTIME_DEPENDENCIES): Document case-preserving change on Windows
7dffe99ad8 Tests: Restore CudaOnly.RuntimeControls cudart verification on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !8367
2023-03-28 08:13:31 -04:00
Brad King
537b0fdf34
Merge branch 'release-3.26'
2023-03-28 08:11:09 -04:00
Brad King
0b2b89cd93
Merge topic 'mingw-slashes'
...
a67cd9c39c Ninja: Restore slash style for MinGW tools when extra languages are enabled
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8368
2023-03-28 08:11:09 -04:00
Brad King
fbe739ec61
Merge topic 'mingw-slashes' into release-3.26
...
a67cd9c39c Ninja: Restore slash style for MinGW tools when extra languages are enabled
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8368
2023-03-28 08:11:08 -04:00
Kitware Robot
3726584a28
CMake Nightly Date Stamp
2023-03-28 00:01:08 -04:00
Brad King
a67cd9c39c
Ninja: Restore slash style for MinGW tools when extra languages are enabled
...
Since commit f3ca199c9b (cmGlobalNinjaGenerator: Factor out GNU-like
command-line detection on Windows, 2023-03-18, v3.26.1~2^2~6), we
accidentally "unrecognize" MinGW tools on Windows if a language other
than C or CXX is enabled. This causes the wrong slash style to be
generated in paths in `build.ninja`.
Fixes : #24642
2023-03-27 18:20:23 -04:00
Brad King
8b09484588
gitignore: Pin directory exclusions to top-level
...
Previously, new files in test directories named `Build*` on
case-insensitive filesystems were being incorrectly ignored.
While at it, add more comments justifying some entries.
2023-03-27 16:20:07 -04:00
Stefan Schober
099934e313
Add generator expression support to static code analysis hooks
...
Teach target properties `<LANG>_CPPCHECK`, `<LANG>_CPPLINT`,
`<LANG>_CLANG_TIDY` and `<LANG>_INCLUDE_WHAT_YOU_USE` to accept
generator expressions.
2023-03-27 11:48:41 -04:00
Brad King
2deb22e160
Merge topic 'crosscompiling-warn-reset'
...
4d23636694 Warn if CMAKE_CROSSCOMPILING is true without CMAKE_SYSTEM_NAME set
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8358
2023-03-27 09:53:53 -04:00
Brad King
c0d50bf83f
Merge topic 'doc-set-no-values'
...
512f64289a Help: Clarify that set(VAR) unsets VAR
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8362
2023-03-27 09:52:48 -04:00
Brad King
99bdb81fff
Merge branch 'release-3.26'
2023-03-27 09:51:59 -04:00
Brad King
367aa65a9f
Merge topic 'module-depends-static-lib-cycle'
...
01d7860fdb Ninja,Makefile: Restore Fortran module scanning in static library cycle
846baa7c5b cmGlobalGenerator: Factor out helper to check target ordering
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8363
2023-03-27 09:51:59 -04:00
Brad King
381327c944
Merge topic 'module-depends-static-lib-cycle' into release-3.26
...
01d7860fdb Ninja,Makefile: Restore Fortran module scanning in static library cycle
846baa7c5b cmGlobalGenerator: Factor out helper to check target ordering
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8363
2023-03-27 09:51:58 -04:00
Brad King
5922c86ed6
file(GET_RUNTIME_DEPENDENCIES): Document case-preserving change on Windows
...
In commit fa45594407 (file(GET_RUNTIME_DEPENDENCIES): Preserve casing
for Windows PE binaries, 2023-03-06) we neglected to update associated
documentation.
2023-03-27 09:49:51 -04:00
Brad King
7dffe99ad8
Tests: Restore CudaOnly.RuntimeControls cudart verification on Windows
...
Since commit fa45594407 (file(GET_RUNTIME_DEPENDENCIES): Preserve casing
for Windows PE binaries, 2023-03-06) we may find the cudart runtime
library with its on-disk casing instead of always lower-case.
2023-03-27 09:27:53 -04:00