Commit Graph

67387 Commits

Author SHA1 Message Date
Brad King 80d16018fa Merge topic 'FindOpenMP-CUDA'
8f4cea94da FindOpenMP: Add support for CUDA when supported by the toolchain
f8ed4d7c21 FindOpenMP: Factor out compiler id lookup
534923428a FindOpenMP: Simplify compiler driver check
42bf0f596e FindOpenMP: Simplify explicit "omp" library checks
5204262c0e ci: add libomp to cuda12.2 base image

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9861
2024-09-30 09:56:45 -04:00
Brad King f63823ed15 Merge topic 'ctestxml-cpu-model-name'
f5af492178 CTest: Report CPU model name to dashboard

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9860
2024-09-30 09:55:31 -04:00
Brad King e36e11996f Merge topic 'enable-ssl-automatically'
c462d9243b CYGWIN,MSYS: Build CMake with OpenSSL by default

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !9858
2024-09-30 09:49:50 -04:00
Brad King 98402581f4 Merge topic 'aix-archive-shared-libraries'
6c12e0758b Ninja: Fix AIX shared library archiving

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9857
2024-09-30 09:48:21 -04:00
Brad King 73c89698dc Merge topic 'xcoff-archives'
bd2c47ad11 AIX: Fix support for editing XCOFF binary inside an archive

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9837
2024-09-30 09:46:25 -04:00
Craig Scott b5403cdc5d Merge topic 'googletest-cleanup-internal'
2cc42d986d GoogleTest: Improve internally used variable names
188b7e7339 GoogleTest: Minor reformatting
0aa445bb9c GoogleTest: Modernize policies using block() / endblock()

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9862
2024-09-30 07:10:01 -04:00
Kitware Robot 0b5854af64 CMake Nightly Date Stamp 2024-09-30 00:02:12 -04:00
Kitware Robot 38e7747911 CMake Nightly Date Stamp 2024-09-29 00:01:17 -04:00
Kitware Robot f85bcb8474 CMake Nightly Date Stamp 2024-09-28 00:01:30 -04:00
Craig Scott 2cc42d986d GoogleTest: Improve internally used variable names
- Use an "arg" prefix for cmake_parse_arguments() rather than
  an empty string or uppercase ARGS so that usages of parsed
  values don't start with a bare underscore or look fully
  uppercase. This makes it harder to miss them or mistake
  them for keywords.
- Use lowercase for names of positional function arguments
  so they don't get mistaken for keywords.
2024-09-28 08:03:27 +10:00
Craig Scott 188b7e7339 GoogleTest: Minor reformatting
- Wrap long lines in file() calls.
- Condense some unnecessary and confusing quotes/spaces in a call
  many arguments built up in a string.
2024-09-28 08:03:26 +10:00
Aditya Vidyadhar Kamath 6c12e0758b Ninja: Fix AIX shared library archiving
Extend commit d27fe9dfba (AIX: Add option to archive shared libraries,
2024-06-18) to update the Ninja generator to support the new
`AIX_SHARED_LIBRARY_ARCHIVE` feature.

Fixes: #26332
2024-09-27 17:53:59 -04:00
Brad King 8f4cea94da FindOpenMP: Add support for CUDA when supported by the toolchain
NVCC supports OpenMP on the host when the host compiler does.
2024-09-27 16:45:24 -04:00
Daniel Pfeifer f5af492178 CTest: Report CPU model name to dashboard 2024-09-27 22:37:21 +02:00
Aditya Vidyadhar Kamath bd2c47ad11 AIX: Fix support for editing XCOFF binary inside an archive
When AIX stores a `.so` inside a `.a` archive, the loader section is
aligned to maximum of the text and data alignment.  In commit 98013ad1ca
(cmXCOFF: Add support for editing binary inside an archive, 2024-07-01)
we only accounted for the data alignment.

Issue: #26275
2024-09-27 09:35:08 -05:00
Brad King c462d9243b CYGWIN,MSYS: Build CMake with OpenSSL by default
Extend the changes from commit 190a5fdffd (Automatically use OpenSSL by
default on Linux and FreeBSD if available, 2016-02-26, v3.6.0-rc1~301^2)
and commit dd3e476786 (OpenSSL: Issue an error if OpenSSL is not found,
2019-07-17, v3.16.0-rc1~379^2) to cover builds targeting the CYGWIN and
MSYS runtime platforms.
2024-09-27 10:32:33 -04:00
Brad King f8ed4d7c21 FindOpenMP: Factor out compiler id lookup 2024-09-27 09:55:47 -04:00
Brad King 534923428a FindOpenMP: Simplify compiler driver check
The compiler driver's verbose flag is needed only when linking because
we parse its output to get the implicit link information added by the
OpenMP flag.
2024-09-27 09:55:47 -04:00
Brad King 42bf0f596e FindOpenMP: Simplify explicit "omp" library checks
For toolchains that do not provide a builtin `omp` library the compiler
driver's OpenMP flag should not be needed when linking.  We also do not
need the compiler driver's verbose flag because we are not parsing its
output.
2024-09-27 09:55:47 -04:00
Brad King 5204262c0e ci: add libomp to cuda12.2 base image 2024-09-27 09:55:47 -04:00
Brad King f7cdfa9938 Merge branch 'release-3.30' 2024-09-27 09:19:32 -04:00
Brad King 5e4526d6dd CMake 3.30.4 v3.30.4 2024-09-27 08:32:31 -04:00
Brad King f7e2422c3e Merge topic 'curl-tls-version'
38390245a2 ctest: Require minimum TLS 1.2 by default
5e1a59dc2b file(DOWNLOAD/UPLOAD): Require minimum TLS 1.2 by default

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9848
2024-09-27 08:03:01 -04:00
Brad King 5701ba7484 Merge topic 'curl-default-cainfo'
5a06872f1e cmake: Add default CA path /var/ssl/certs on AIX

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9854
2024-09-27 08:01:41 -04:00
Brad King 590f1d28e0 Merge branch 'release-3.30' 2024-09-27 07:58:44 -04:00
Brad King 536f3e27d6 Merge topic 'project-vars'
73a8f944b2 Help: Add 3.30 release notes for project variable updates

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9853
2024-09-27 07:58:43 -04:00
Brad King 035ca0569e Merge topic 'project-vars' into release-3.30
73a8f944b2 Help: Add 3.30 release notes for project variable updates

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9853
2024-09-27 07:58:41 -04:00
Brad King 36a855bf87 Merge topic 'ci-linkcheck'
8a59fb1c90 FindDevIL: Replace http link with its redirect
f77e36aa37 FindAVIFile: Replace http link with its redirect

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9852
2024-09-27 07:52:25 -04:00
Craig Scott 0aa445bb9c GoogleTest: Modernize policies using block() / endblock() 2024-09-27 16:42:50 +10:00
Kitware Robot 3615290dc7 CMake Nightly Date Stamp 2024-09-27 00:01:14 -04:00
Brad King 5a06872f1e cmake: Add default CA path /var/ssl/certs on AIX
Extend commit 0abd3e538e (cmake: Use a default CA path when not using
system curl, 2015-01-22, v3.2.0-rc1~66^2) to cover AIX.
2024-09-26 13:18:44 -04:00
Brad King 38390245a2 ctest: Require minimum TLS 1.2 by default
Issue: #25701
2024-09-26 10:10:48 -04:00
Brad King 5e1a59dc2b file(DOWNLOAD/UPLOAD): Require minimum TLS 1.2 by default
Fixes: #25701
2024-09-26 10:10:20 -04:00
Brad King 73a8f944b2 Help: Add 3.30 release notes for project variable updates
Add a 3.30.3 release note for commit c1ece78d11 (project: non cache
<project> prefix variables are also created, 2024-08-27, v3.30.3~2^2).
Prepare a 3.30.4 release note for commit 86ad7cc886 (project: Only
define non-cache vars if already defined, 2024-09-15).
2024-09-26 09:41:33 -04:00
Brad King 8a59fb1c90 FindDevIL: Replace http link with its redirect 2024-09-26 09:00:46 -04:00
Brad King f77e36aa37 FindAVIFile: Replace http link with its redirect 2024-09-26 09:00:46 -04:00
Brad King 53f3e5da1e Merge topic 'link-strategy'
7abd3137b7 Linking: Optionally reorder direct dependencies from LINK_LIBRARIES
9285a9dc9a cmComputeLinkDepends: Add final dependency ordering to debug output
f792db4ca2 cmComputeLinkDepends: Add undocumented per-target debug property
80b469a51d cmComputeLinkDepends: Factor out string literals as named constants
3bd73fcc76 cmComputeLinkDepends: Modernize member initialization
8db69c767b cmComputeLinkDepends: Remove redundant member
dccdd030cd cmComputeLinkDepends: Replace depender index sentinel value with cm::optional
6c9d8dc243 cmComputeLinkDepends: Replace group index sentinel value with cm::optional
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9835
2024-09-26 08:47:47 -04:00
Brad King 8d69aa79b0 Merge topic 'net-sdk-configurations'
55a5094f0e VS: Fix missing <Configurations> property for DOTNET_SDK

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9849
2024-09-26 08:41:34 -04:00
Brad King f8c96b2395 Merge topic 'binutils-llvm-mt'
137a2060bc BinUtils: Prefer llvm-mt over mt when compiling with Clang

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9847
2024-09-26 08:40:45 -04:00
Brad King 1d3706021e Merge topic 'ci-cuda-nvcc-clang'
515bcd77e5 ci: add job testing cuda12.2 with nvcc using clang 18 as host compiler
33406182a5 Tests: Honor CUDAFLAGS in all CUDA tests

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9850
2024-09-26 08:35:39 -04:00
Kitware Robot e7e1a0bba0 CMake Nightly Date Stamp 2024-09-26 00:01:58 -04:00
Brad King 515bcd77e5 ci: add job testing cuda12.2 with nvcc using clang 18 as host compiler 2024-09-25 16:53:06 -04:00
Brad King 33406182a5 Tests: Honor CUDAFLAGS in all CUDA tests 2024-09-25 16:30:02 -04:00
Calum Robinson 55a5094f0e VS: Fix missing <Configurations> property for DOTNET_SDK
Fixes #26325
2024-09-25 16:20:12 +01:00
Brad King b1aba2fb4e Merge topic 'doc-include_external_msproject'
6b7e634b7c Help: Explicitly state include_external_msproject is only for VS generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: martingalvan-volue <martin.galvan@volue.com>
Merge-request: !9846
2024-09-25 10:00:06 -04:00
Brad King 137a2060bc BinUtils: Prefer llvm-mt over mt when compiling with Clang
The problem motivating commit 73d0d4e4b5 (BinUtils: Avoid llvm-mt
because it is missing 'mt' features we use, 2022-03-08, v3.23.0-rc3~7^2)
has been fixed in `llvm-mt` since LLVM/Clang 14.0.2.

Fixes: #26319
Issue: #23305
2024-09-25 09:12:27 -04:00
Brad King 0acff8e622 Merge topic 'curl-tls-version'
5d2ea8371d Tests/RunCMake/file-DOWNLOAD: Add case covering TLS_VERSION values
c864ffceb7 Tests/RunCMake/file-DOWNLOAD: Clarify name of invalid TLS_VERSION case

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9845
2024-09-25 09:03:34 -04:00
Brad King 506255b1f1 Merge topic 'nested_linker_prefixes'
e3895f4a8b Linking: Preserve nested LINKER: prefixes as written
4185dfbe1b Tests/LINK_OPTIONS: extract common code in test (NFC)
54381b5a81 Linking: extract wrapping linker options to a lambda (NFC)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9823
2024-09-25 08:58:26 -04:00
Brad King 6b7e634b7c Help: Explicitly state include_external_msproject is only for VS generators
Fixes: #19975
2024-09-25 07:24:32 -04:00
Brad King 7abd3137b7 Linking: Optionally reorder direct dependencies from LINK_LIBRARIES
Traditionally CMake generates link lines by starting with the direct
link dependencies specified by `LINK_LIBRARIES` in their original order
and then appending indirect dependencies that the direct dependencies
do not express.  This gives projects control over ordering among
independent entries, which can be important when intermixing flags
and libraries, or when multiple libraries provide the same symbol.
However, it may also result in inefficient link lines.

Add support for an alternative strategy that can reorder direct link
dependencies to produce more efficient link lines.  This is useful
for projects that cannot easily specify their targets' direct
dependencies in an order that satisfies indirect dependencies.

Add a `CMAKE_LINK_LIBRARIES_STRATEGY` variable and corresponding
`LINK_LIBRARIES_STRATEGY` target property to select a strategy.

Fixes: #26271
2024-09-25 06:48:57 -04:00