Commit Graph

15766 Commits

Author SHA1 Message Date
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 Melnikov
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
Charlie Savage
b4f2c7beab FindRuby: Hide interpreter query cache entries
Avoid exposing them to editing in `cmake-gui` or `ccmake`.
2025-12-11 09:22:06 -05:00
Vito Gamberini
1bf46814c4 FindBLAS: Make find_package(nvpl) quiet
Fixes: #27451
2025-12-10 11:33:12 -05:00
Brad King
485d51f474 Merge topic 'FindRuby-macos-brew'
996a65a328 FindRuby: Add support for Brew on macOS

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11474
2025-12-10 09:40:29 -05:00
Charlie Savage
996a65a328 FindRuby: Add support for Brew on macOS
Brew is a common way to install Ruby on MacOS.  Search using paths
provided by the ruby interpreter.
2025-12-09 15:46:22 -05:00
Matthew Woehlke
d4754c1a0c FindSQLite3: Use package name as namespace
As we (hopefully) move toward a CPS world, it is helpful for imported
targets to use the package name as the namespace (as required by CPS).
Modify FindSQLite3 to do so. The old name is retained for compatibility.
2025-12-08 11:14:43 -05:00
Keith Smiley
5f2f36f1ea FindLibXml2: Add a LibXml2_USE_STATIC_LIBS hint
Add an option to search only for the static library.
2025-12-04 15:51:35 -05:00
Brad King
66ef2bce82 Merge topic 'FindPython'
b589a78497 FindPython: Use bracket arguments for python code blocks

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11467
2025-12-03 16:27:16 -05:00
Brad King
e4737d1c4a Merge topic 'cli-tar-lzma'
5b87a5d53e cli tar: implement LZMA support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !11465
2025-12-03 16:26:20 -05:00
Eisuke Kawashima
b589a78497 FindPython: Use bracket arguments for python code blocks 2025-12-03 01:11:33 +09:00
AJIOB
5b87a5d53e cli tar: implement LZMA support
Fixes: #27433
2025-12-02 10:44:49 +03:00
Eisuke Kawashima
0837fb552f IntelLLVM: Remove unused code
In commit a90d2a9eed (IntelLLVM: Add support for Intel LLVM-based
compilers, 2020-11-02, v3.20.0-rc1~89^2~20) we added a `set()` that is
immediately followed by another `set()` of the same variable.  Remove
the former.

Fixes: #27019
2025-12-01 16:26:58 -05:00
Brad King
8afe7a3d2d Merge topic 'emscripten-arch-id'
5ec87b2ba7 Emscripten: Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11452
2025-11-26 10:02:26 -05:00
Brad King
4f2ac4f564 Merge topic 'emscripten-fPIC'
86574083a8 Emscripten: Drop hard-coded -fPIC flag

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sam Clegg <sbc@chromium.org>
Merge-request: !11448
2025-11-26 09:57:42 -05:00
Brad King
2fcbbfcae4 Merge topic 'ExternalProject-env-mod'
8afe5f227c ExternalProject: Fix environment modification ops named with underscores

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11442
2025-11-26 09:45:21 -05:00
Brad King
5ec87b2ba7 Emscripten: Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID
Extend commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16,
v4.2.0-rc1~607^2~3) to account for commit 7f0f382c55 (Provide
CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID on more compilers, 2025-03-24,
v4.1.0-rc1~499^2).

Fixes: #27425
2025-11-25 15:46:16 -05:00
Brad King
89d1e92c11 Merge topic 'flang-j-as-moddir'
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !11443
2025-11-25 11:13:07 -05:00
Brad King
7dadc53cc3 Merge topic 'flang-j-as-moddir' into release-4.2
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !11443
2025-11-25 11:13:05 -05:00
Brad King
d330f70a53 Merge topic 'flang-j-as-moddir' into release-4.1
db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11443
2025-11-25 11:12:17 -05:00
Brad King
86574083a8 Emscripten: Drop hard-coded -fPIC flag
In commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16,
v4.2.0-rc1~607^2~3) this flag was added as part of an attempt to support
shared libraries without requiring projects to set much themselves. That
attempt was reverted by commit d361bf365e (Emscripten: Drop hard-coded
-sMAIN_MODULE and -sSIDE_MODULE flags, 2025-09-18, v4.2.0-rc1~146^2).
Also avoid hard-coding `-fPIC`.  `POSITION_INDEPENDENT_CODE` is already
enabled for shared library targets.  Projects can enable it themselves
where `-fPIC` is needed outside of shared libraries.

Fixes: #27424
Issue: #27240
2025-11-25 10:32:04 -05:00
Brad King
aa9d4a6255 Merge topic 'emscripten-platform'
75e98477e3 Emscripten: Restore placement of source files on compile command-lines

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !11444
2025-11-25 10:29:14 -05:00
Brad King
75e98477e3 Emscripten: Restore placement of source files on compile command-lines
Since commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16,
v4.2.0-rc1~607^2~3), compilation command-lines for Emscripten place
`-c <SOURCE>` before all the flags.  Restore the original order.

Fixes: #27404
2025-11-24 14:49:19 -05:00