Commit Graph
15791 Commits
Author SHA1 Message Date
Brad King b630ddef9f Merge topic 'FindBoost-1.89-1.90'
a1aa530be7 FindBoost: Add support for Boost 1.90
468873faab FindBoost: Add support for Boost 1.89

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11674
2026-02-10 11:25:52 -05:00
Brad King a1aa530be7 FindBoost: Add support for Boost 1.90
Update the list of known versions.

Run the command

    cmake -DBOOST_DIR=/path/to/boost_1_90_0 \
      -P Utilities/Scripts/BoostScanDeps.cmake

to extract dependencies from the 1.90.0 source tree.
They differ from 1.89's dependencies only in that
a new Boost.Cobalt component was added.
2026-02-09 12:17:52 -05:00
Brad King 468873faab FindBoost: Add support for Boost 1.89
Update the list of known versions.

Run the command

    cmake -DBOOST_DIR=/path/to/boost_1_89_0 \
      -P Utilities/Scripts/BoostScanDeps.cmake

to extract dependencies from the 1.89.0 source tree.
They are the same as 1.88's dependencies, so just update
the version check for warning about newer versions.
2026-02-09 12:14:59 -05:00
Brad King e686b86649 Merge topic 'import-std-no-experimental'
70c1f0f43d Experimental: Remove import std experimental gate

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11657
2026-02-08 09:18:01 -05:00
Vito Gamberini 70c1f0f43d Experimental: Remove import std experimental gate
Fixes: #27571
2026-02-07 09:03:43 -05:00
Ayush Singh 5c1b0a6b7e Rust: Add experimental support with Ninja
The TU for Rust is a crate, not per-source.  `rustc` expects entry file
to TU as input, and cannot work with object files.  So we need to have
one-step build/link in most cases, similar to what old Swift was doing.

Issue: #25492
Signed-off-by: Ayush Singh <ayush@beagleboard.org>
2026-02-06 11:32:56 -05:00
Brad King 9e5d338dd9 Merge topic 'lang-link-flags'
98f9874703 cmake: Add per-language link flags for all target types
63858fc3e0 Tests: Factor out LINKER: reference file generation
399288871e cmLocalGenerator: Factor out link flag parsing
82913923cd try_compile: Reflow comments per `clang-format`
7b4b556e2d Help: Fix description of `CMAKE_*_LINKER_FLAGS` variables
29b1d0baa9 Help/try_compile: Remove extraneous `versionadded` policy note
5ecee0db7b cmLocalGenerator: De-duplicate static linker flags lookup
bc1847c70b cmLocalGenerator: De-duplicate target property link flags lookup
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11611
2026-02-03 11:22:36 -05:00
Tyler YankeeandBrad King 98f9874703 cmake: Add per-language link flags for all target types
Previously, `CMAKE_<LANG>_LINK_FLAGS` was an undocumented variable used
for linking executables only. Re-spell that variable mirroring the
existing spellings for shared and module libraries, and add policy
CMP0210 to preserve compatibility.

Then, repurpose `CMAKE_<LANG>_LINK_FLAGS` to provide a variable to be
used for per-language link flags for all target types, along with a
per-configuration variant. These are added to the `<LINK_FLAGS>` rule
placeholder in the generators.

Fixes: #21934
Relates: #25620

Co-authored-by: Brad King <brad.king@kitware.com>
2026-01-31 19:37:09 -05:00
Charlie Savage fe006b5e9d FindRuby: Only search for released Ruby versions 2026-01-26 14:25:59 -08:00
Charlie Savage 82d39e5a7c FindRuby: Fix cache strings 2026-01-26 13:16:41 -08:00
Charlie Savage a6a27d9160 FindRuby: Change MESSAGE to message. 2026-01-26 13:16:14 -08:00
Charlie Savage af39d00aaa FindRuby: Fix debug message to output correct variable. 2026-01-26 13:15:36 -08:00
Brad King 1e4f9c2394 macOS: Remove outdated condition for -search_paths_first link flag
We no longer support versions of macOS older than 10.4.
2026-01-26 12:19:08 -05:00
Charlie Savage c5e7cb691c FindRuby: Add support for interpreter and development components 2026-01-23 10:35:43 -05:00
Charlie Savage dc8e05c4d2 FindRuby: Simplify finding the Ruby library - Ruby already knows! 2026-01-23 10:35:43 -05:00
Charlie Savage b192f706aa FindRuby: Remove broken, untested and unmaintained cross-compiling support 2026-01-23 10:35:43 -05:00
Charlie Savage ee75b3e7b4 FindRuby: Clean up variables read from Ruby 2026-01-23 10:35:43 -05:00
Charlie Savage ba37066185 FindRuby: Versions are strings not paths. 2026-01-23 10:35:43 -05:00
Charlie Savage b2bd6b221c FindRuby: Enclose Ruby executable in quotes 2026-01-23 10:35:43 -05:00
Charlie Savage 752d5cace6 FindRuby: Fix incorrect code and versions 2026-01-23 10:35:42 -05:00
Charlie Savage deb67fa837 FindRuby: Remove duplicate word 2026-01-23 10:35:42 -05:00
Charlie Savage dba840934c FindRuby: Add Ruby 4.0 support 2026-01-23 10:35:42 -05:00
Charlie Savage 56b3437108 FindRuby: Fix finding headers on Github MacOS runners using Brew 2026-01-23 10:35:42 -05:00
Paulius Velesko 47c3e55d4a HIP: Add support for SPIR-V platform
Add `spirv` as a known value for `CMAKE_HIP_PLATFORM`.
Default `CMAKE_HIP_ARCHITECTURES` to `OFF` for `spirv`.

Fixes: #27410
2026-01-20 13:18:18 -05:00
Brad King 18c98682f5 Merge topic 'verify-private-header-sets'
b61637f90f File sets: Add verification of private file sets
61df2e15a2 Help: Verification target also sets CXX_SCAN_FOR_MODULES to false
909b54023a File sets: Specify verify file set target names in one place
20219414c3 File sets: Always verify interface files sets of executable targets
c7a1d5ee58 Tests: Rename VerifyHeaderSets tests to VerifyInterfaceHeaderSets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11565
2026-01-19 09:27:59 -05:00
Craig Scott b61637f90f File sets: Add verification of private file sets
Add support for PRIVATE header sets, analogous to the existing
INTERFACE header sets support. A key difference between the two is
the way they handle build and usage requirements. INTERFACE
header sets rely on the original target's INTERFACE, whereas PRIVATE
header sets copy across various properties from the original target.

Generated files need special handling for PRIVATE header sets.
Add a dependency on the original target to the verification target to
ensure such generated files will exist.

Fixes: #23448
2026-01-16 18:10:17 +11:00
Brad King 6347854fa2 Merge topic 'botantony-find-lua-5.5'
261b7b933c FindLua: Add support for Lua 5.5

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11550
2026-01-13 10:49:22 -05:00
Anton MelnikovandTyler Yankee 261b7b933c FindLua: Add support for Lua 5.5
Fixes: #27476

Co-authored-by: Tyler Yankee <tyler.yankee@kitware.com>
2026-01-12 16:02:29 -05:00
Kyle Edwards 2d2036c9e9 FindCUDAToolkit: Add CUDA::bin2c target 2026-01-12 12:02:07 -05:00
Brad King 538926c532 Merge topic 'cpack-archive-compression-level'
0bca70968a CPack: support archive compression level
54f926c740 libarchive: Limit lzma compression level to 6 on AIX

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11548
2026-01-12 09:40:51 -05:00
AJIOB 0bca70968a CPack: support archive compression level
Fixes: #18117
2026-01-09 10:35:04 -05:00
Brad King f2d688bf5f Merge topic 'optimize-CPack-module'
000d572d04 CPack.cmake: reduce `foreach` iterations count matching `CPACK*` vars

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11580
2026-01-09 10:11:49 -05:00
Brad King 500dbbb2fe Merge topic 'fix-openscenegraph-relwithdebinfo'
a10c2e32a5 FindOpenSceneGraph: Detect library built as RelWithDebInfo
b5d5eea716 FindOpenThreads: Detect library built as RelWithDebInfo

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11542
2026-01-09 10:10:13 -05:00
Alex Turbov 000d572d04 CPack.cmake: reduce foreach iterations count matching CPACK* vars 2026-01-08 22:36:50 +04:00
Carlo Bramini a10c2e32a5 FindOpenSceneGraph: Detect library built as RelWithDebInfo 2026-01-08 10:44:00 -05:00
Carlo Bramini b5d5eea716 FindOpenThreads: Detect library built as RelWithDebInfo 2026-01-08 10:44:00 -05:00
Brad King db24521141 Merge topic 'find_openmp_better_error_message_when_lang_not_enable'
d4aec0ff07 FindOpenMP: Improve robustness when a language isn't enabled.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11566
2026-01-08 10:36:32 -05:00
Brad King aa95721f76 Merge topic 'FindHDF5-2-mpi'
27e558dfa5 FindHDF5: Fix MPI flags for HDF5>=2.0.0

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11573
2026-01-08 10:35:20 -05:00
Brad King cb4c129238 Merge topic 'AppleClang-c++26'
47924bd1ba AppleClang: Add C++26 support
f2b45d8326 ci: Record expected C++26 support in Debian jobs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Nico Weber <thakis@chromium.org>
Merge-request: !11572
2026-01-08 10:26:12 -05:00
Corentin Cadiou 27e558dfa5 FindHDF5: Fix MPI flags for HDF5>=2.0.0
`HDF5_ENABLE_PARALLEL` is now `HDF5_PROVIDES_PARALLEL`.
See https://discourse.cmake.org/t/15444/2.
2026-01-07 11:53:46 -05:00
Brad King 47924bd1ba AppleClang: Add C++26 support
Follow up commit 0183956d30 (Clang: C++26 support, 2023-05-16,
v3.27.0-rc1~85^2).

Fixes: #27486
2026-01-07 10:48:43 -05:00
Robert Maynard d4aec0ff07 FindOpenMP: Improve robustness when a language isn't enabled.
Previously we would generate a if statement with `OR STREQUAL` when
${CMAKE_${LANG}_COMPILER_ID} evaluated to an empty string
2026-01-05 09:23:11 -05:00
Craig Scott d052cba821 Merge topic 'doc-double-word-cleanup'
0854e3d598 Help,Comments: Fix occurrences of doubled words

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11547
2025-12-24 18:30:54 -05:00
Craig Scott 0854e3d598 Help,Comments: Fix occurrences of doubled words 2025-12-21 21:03:33 +11:00
Brad King 571b438d41 export: Increase maximum policy version in exported files to 4.1
The files generated by `install(EXPORT)`, `export()`, and
`install_jar_exports()` commands are known to work with policies
as of CMake 4.1, so enable them in sufficiently new CMake versions.
2025-12-19 07:22:51 -05:00
Brad King 12be5c60ff Merge topic 'cpack-stgz-deref-symlinks'
ecbe5a8479 CPack/STGZ: Avoid replacing directory symlinks if possible

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11526
2025-12-18 10:37:58 -05:00
Brad King ecbe5a8479 CPack/STGZ: Avoid replacing directory symlinks if possible
When installing into a prefix with existing directory symlinks, tell
`tar` not to replace them with real directories from the package.

Fixes: #21119
2025-12-17 17:33:23 -05:00
Kevin Barre 07fe3f95ce CPack/DEB: Add CPACK_DEBIAN_COMPRESSION_LEVEL variable
Add a new variable `CPACK_DEBIAN_COMPRESSION_LEVEL` to control the compression
level used when generating Debian packages. This complements the existing
`CPACK_DEBIAN_COMPRESSION_TYPE` variable and allows finer control over the
compression performance vs. size trade-off. Supported values correspond to
the compression level accepted by the underlying compressor (e.g. gzip, xz,
zstd, etc.).
2025-12-17 14:27:10 -05:00
Brad King fb82c55f9d Merge topic 'FindRuby-cache-internal'
b4f2c7beab FindRuby: Hide interpreter query cache entries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11500
2025-12-12 10:02:12 -05:00
Brad King 85d359f008 Merge topic 'fix-nvpl'
1bf46814c4 FindBLAS: Make find_package(nvpl) quiet

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11498
2025-12-11 09:42:58 -05:00