Commit Graph

61749 Commits

Author SHA1 Message Date
Brad King 710d6515ac gitlab-ci: add jobs testing Intel 2023.1.0 compilers on Linux
Note that the classic compiler version is 2021.9.0, but we still
have it in the 2023.1.0 base image.
2023-04-26 10:34:19 -04:00
Brad King 663cc941bd Merge topic 'iwyu_errors'
fcacc319d9 IWYU: Return error code if user enables error reporting

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8406
2023-04-26 10:31:11 -04:00
Brad King d5d06ec444 Merge topic 'vs2022-android'
16d8b65bc0 VS/Android: Use safe API level when detecting the NDK directory
f7af10100c VS/Android: Detect full NDK root instead of sysroot
850ee280e0 VS/Android: Set API level explicitly during compiler identification
5d5b6c741d VS/Android: Do not specify Windows Runtime library type during compiler id
e78abf94e3 VS/Android: Use ApplicationTypeRevision 3.0 in VS2022

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8426
2023-04-26 10:28:38 -04:00
Brad King af53934df7 Merge topic 'update-libarchive'
ba5ced1be6 libarchive: Set build options the way we need for CMake
1e2bce305f Merge branch 'upstream-LibArchive' into update-libarchive
e468170731 LibArchive 2022-12-09 (ba80276c)
744a42c0ee libarchive: Update script to get 3.6.2

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8431
2023-04-26 10:27:03 -04:00
Brad King 1ac569fdaa Merge topic 'fortran_ninja_compile_as_warning'
9d40f01442 NVHPC: Use -Werror for COMPILE_OPTIONS_WARNING_AS_ERROR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8415
2023-04-26 10:24:28 -04:00
Brad King 3f3c3d3e71 Merge branch 'release-3.26' 2023-04-26 10:22:27 -04:00
Brad King b92e21cab8 Merge topic 'FindCUDAToolkit-static-deps'
1d6c343661 FindCUDAToolkit: Add missing static library dependencies on pthread and libdl

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8422
2023-04-26 10:22:27 -04:00
Brad King b548c7efa6 Merge topic 'FindCUDAToolkit-static-deps' into release-3.26
1d6c343661 FindCUDAToolkit: Add missing static library dependencies on pthread and libdl

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8422
2023-04-26 10:22:26 -04:00
Brad King 1ca371a7f0 Merge branch 'release-3.26' 2023-04-26 10:21:13 -04:00
Brad King 768c36e256 Merge topic 'FindCUDAToolkit_nvrtc_windows_dependencies'
11a9f88bdf FindCUDAToolkit: Fix nvrtc_static dependencies on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8405
2023-04-26 10:21:13 -04:00
Brad King f0b45e6dbb Merge topic 'FindCUDAToolkit_nvrtc_windows_dependencies' into release-3.26
11a9f88bdf FindCUDAToolkit: Fix nvrtc_static dependencies on Windows

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8405
2023-04-26 10:21:12 -04:00
Robert Maynard 1d6c343661 FindCUDAToolkit: Add missing static library dependencies on pthread and libdl
Discourse-topic: https://discourse.cmake.org/t/7946
2023-04-26 10:19:59 -04:00
Marc Chevrier d77b3d342e Merge topic 'test-driver-use-anonymous-namespace'
ca2a84c3d7 TestDriver: Fix 'misc-use-anonymous-namespace' warning from clang-tidy 16

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8413
2023-04-26 04:48:00 -04:00
Kitware Robot 941113b063 CMake Nightly Date Stamp 2023-04-26 00:01:14 -04:00
Michael Karcher 16d8b65bc0 VS/Android: Use safe API level when detecting the NDK directory 2023-04-25 13:49:03 -04:00
Michael Karcher f7af10100c VS/Android: Detect full NDK root instead of sysroot
Visual Studio always uses a complete NDK and not a standalone toolchain.
Let CMake handle the NDK and related logic correctly, avoid trying to
find the standalone toolchain version from the unified clang toolchain
in newer NDKs.
2023-04-25 13:48:33 -04:00
Michael Karcher 850ee280e0 VS/Android: Set API level explicitly during compiler identification
VS2022 defaults to API 31 in 64-bit builds.  This breaks if you combine
VS2022 with an older Android NDK.
2023-04-25 13:47:17 -04:00
Michael Karcher 5d5b6c741d VS/Android: Do not specify Windows Runtime library type during compiler id
The VS2022 Clang toolchain adds some windows libraries to the linked
library list if RuntimeLibrary is set, even if the Project is targeting
Android.  This causes an unexpected linker failure.
2023-04-25 13:46:10 -04:00
Michael Karcher e78abf94e3 VS/Android: Use ApplicationTypeRevision 3.0 in VS2022
Visual Studio 17 (Marketing name: Visual Studio 2022) still ships with
"3.0" as most recent Variant of the Android application type.
Use this revision.
2023-04-25 13:45:37 -04:00
Robert Maynard 11a9f88bdf FindCUDAToolkit: Fix nvrtc_static dependencies on Windows
Required for CUDA toolkit 11.5:

* https://docs.nvidia.com/cuda/archive/11.5.0/nvrtc/index.html#build-instruction
2023-04-25 13:37:19 -04:00
Ashish Sadanandan fcacc319d9 IWYU: Return error code if user enables error reporting
Previously CMake ignored the return code from iwyu because old versions
of the tool would exit with an error code even when no header include
violations were detected.  The iwyu project has since changed this
behavior, so the tool no longer returns an error code unless the user
enables error reporting via command line arguments.

Behavior seen with iwyu version 0.19

Source file with missing includes:
 - Case 1: iwyu arguments:
   - return code: 0
   - output: <report of all missing includes>
 - Case 2: iwyu arguments: `-Xiwyu --error`
   - return code: 1
   - output: <report of all missing includes>

Source file with no missing includes:
 - Case 1: iwyu arguments:
   - return code: 0
   - output: `(/path/to/file.cc has correct #includes/fwd-decls)`
 - Case 2: iwyu arguments: `-Xiwyu --error`
   - return code: 0
   - output: `(/path/to/file.cc has correct #includes/fwd-decls)`

Teach CMake to return the iwyu return code if the user has invoked the
tool with any of these command line arguments included:
 - `--error[=N]`
 - `--error_always[=N]`

Fixes: #24066
2023-04-25 11:18:36 -04:00
Robert Maynard 9d40f01442 NVHPC: Use -Werror for COMPILE_OPTIONS_WARNING_AS_ERROR
The previously-used `-Werror all-warnings` is not supported by
the NVHPC suite of compilers.  This previously worked since `-Werror`
was being used and `all-warnings` was being excluded.

We thought this was the correct syntax due to incorrect documentation
about `-Werror`, which stated the argument should be space-separated,
while it should actually be separated with `=` or `,`.

Issue: #24665
2023-04-25 11:16:26 -04:00
Brad King ba5ced1be6 libarchive: Set build options the way we need for CMake 2023-04-25 10:35:27 -04:00
Brad King 1e2bce305f Merge branch 'upstream-LibArchive' into update-libarchive
* upstream-LibArchive:
  LibArchive 2022-12-09 (ba80276c)
2023-04-25 10:28:08 -04:00
LibArchive Upstream e468170731 LibArchive 2022-12-09 (ba80276c)
Code extracted from:

    https://github.com/libarchive/libarchive.git

at commit ba80276ccc3c941c4918ec6e2460059f0c525c43 (v3.6.2).
2023-04-25 10:25:30 -04:00
Brad King 744a42c0ee libarchive: Update script to get 3.6.2 2023-04-25 10:20:59 -04:00
Brad King 827d5b75d4 Merge topic 'CMake-uses-cmList-class'
e08ba229ee CMake code rely on cmList class for CMake lists management (part. 1)
51b0d45d91 cmExpandList and cmExpandLists rely on cmList class

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8423
2023-04-25 09:52:40 -04:00
Sylvain Joubert ca2a84c3d7 TestDriver: Fix 'misc-use-anonymous-namespace' warning from clang-tidy 16
C++ best practices recommend using anonymous namespace instead of a global
static qualifier.
2023-04-25 12:54:31 +02:00
Kitware Robot 26087d558f CMake Nightly Date Stamp 2023-04-25 00:01:06 -04:00
Marc Chevrier e08ba229ee CMake code rely on cmList class for CMake lists management (part. 1) 2023-04-24 10:41:10 +02:00
Kitware Robot 3c952e97e2 CMake Nightly Date Stamp 2023-04-24 00:01:26 -04:00
Marc Chevrier 51b0d45d91 cmExpandList and cmExpandLists rely on cmList class 2023-04-23 14:48:36 +02:00
Kitware Robot ec4331d7b5 CMake Nightly Date Stamp 2023-04-23 00:01:08 -04:00
Marc Chevrier 59c674917b Merge topic 'Link_instruction_in_RSP'
e0364eb20d Add support of CMAKE_<LANG>_USE_RESPONSE_FILE_FOR_LIBRARIES variable.

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8409
2023-04-22 04:29:30 -04:00
Marc Chevrier a2fc16510c Merge topic 'emacs-mode-shell-quote-fix'
0722569cf3 Properly handle cases where `topic` argument is defaulted

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8424
2023-04-22 04:28:24 -04:00
Kitware Robot 79d0deccc7 CMake Nightly Date Stamp 2023-04-22 00:01:07 -04:00
Damien Nguyen 0722569cf3 Properly handle cases where topic argument is defaulted 2023-04-21 14:34:51 +02:00
Kitware Robot 3cf8206412 CMake Nightly Date Stamp 2023-04-21 00:01:07 -04:00
Marc Chevrier c36f03bfec Merge topic 'GenEx-list'
31675964e7 GenEx LIST: list operations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8410
2023-04-20 11:02:14 -04:00
Kitware Robot 4862d3e90d CMake Nightly Date Stamp 2023-04-20 00:01:06 -04:00
Kitware Robot bd94194334 CMake Nightly Date Stamp 2023-04-19 00:01:11 -04:00
Kitware Robot 79499f9e71 CMake Nightly Date Stamp 2023-04-18 00:01:06 -04:00
Craig Scott c648d7363d Merge topic 'doc-workflow-presets-vendor'
dd8ac2f5ca Help: Add missing vendor field to the workflow presets docs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8419
2023-04-17 05:58:58 -04:00
Craig Scott b79c444e53 Merge topic 'export-file-set-old-cmake-versions'
42e5be8cef install(EXPORT): Fall back to set_property(APPEND) for FILE_SET

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8408
2023-04-17 05:58:05 -04:00
Marc Chevrier ae1e8e288e Merge branch 'release-3.26' 2023-04-17 05:15:59 -04:00
Marc Chevrier 62967ea178 Merge topic 'Help-CMP0105-clarifications'
c96df3dc8b Merge branch 'backport-3.26-help-CMP0105' into Help-CMP0105-clarifications
afd40232fa Help: CMP0105 policy: clarifications

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8418
2023-04-17 05:15:59 -04:00
Marc Chevrier 32c3dbbee8 Merge topic 'Help-CMP0105-clarifications' into release-3.26
afd40232fa Help: CMP0105 policy: clarifications

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8418
2023-04-17 05:15:58 -04:00
Kitware Robot 911b285640 CMake Nightly Date Stamp 2023-04-17 00:01:25 -04:00
Marc Chevrier 31675964e7 GenEx LIST: list operations
Fixes: #24550, #24547
2023-04-16 12:00:20 +02:00
Kitware Robot fee5bd296b CMake Nightly Date Stamp 2023-04-16 00:01:06 -04:00