summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'fix-Wstrict-prototypes'Brad King2023-10-271-1/+1
|\ | | | | | | | | | | | | | | | | | | 81022213f6 Modules: Fix clang -Wstrict-prototypes warnings 47c3334203 Source: Fix clang -Wstrict-prototypes warnings 264dcae5e4 Tests: Fix clang -Wstrict-prototypes warnings Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8916
| * Modules: Fix clang -Wstrict-prototypes warningsSean McBride2023-10-261-1/+1
| |
* | Link Step: linker depfile configuration: bug fixMarc Chevrier2023-10-251-5/+6
|/ | | | | Follow up commit 538ff514b5 (Link Step: use the correct linker for depfile handling, 2023-10-16)
* Merge topic 'compute-compiler-linker'Brad King2023-10-2417-108/+350
|\ | | | | | | | | | | | | | | 538ff514b5 Link Step: use the correct linker for depfile handling c26c6ac488 Link Step: compute effective linker used by the compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8885
| * Link Step: use the correct linker for depfile handlingMarc Chevrier2023-10-241-11/+18
| | | | | | | | | | Follow up commit 375e6fdbbe (Link step: use linker dependency linker file, 2023-04-19, v3.27.0-rc1~126^2).
| * Link Step: compute effective linker used by the compilerMarc Chevrier2023-10-2416-97/+332
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extract the effective linker during the computation of implicit artifacts delivered by the compiler to the linker. Define various variables describing the linker: * CMAKE_<LANG>_COMPILER_LINKER * CMAKE_<LANG>_COMPILER_LINKER_VERSION * CMAKE_<LANG>_COMPILER_LINKER_ID * CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT This is complementary to feature introduced by commit 96a953b1ed (Add options to specify linker tool, 2023-09-27). Fixes: #17596, #18209, #25344
* | Merge topic 'clang-ansi-color'Brad King2023-10-231-2/+8
|\ \ | |/ |/| | | | | | | | | 74b5fae52d Clang: Use -fno-ansi-escape-codes for color diagnostics on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8900
| * Clang: Use -fno-ansi-escape-codes for color diagnostics on WindowsCristian Adam2023-10-231-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | -fno-ansi-escape-codes is used only on Windows by Clang. Without the flag color diagnostics are displayed only if clang.exe is executed directly. Build tools like ninja and mingw32-make will not display colored diagnostics. Using -fno-ansi-escape-codes will make the build tools pass the colored diagnostics to the calling application e.g IDE. Fixes: #24235
* | Merge topic 'ExternalProject-ghs'Brad King2023-10-171-3/+14
|\ \ | | | | | | | | | | | | | | | | | | | | | 9bac4bb88d ExternalProject: Fix INSTALL step for GHS generator Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8879
| * | ExternalProject: Fix INSTALL step for GHS generatorWilliam Sciaroni2023-10-161-3/+14
| | | | | | | | | | | | Fixes: #25267
* | | Merge topic 'adsp-asm'Brad King2023-10-171-0/+6
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 0e828b92f1 ADSP: Add support for assembler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8869
| * | | ADSP: Add support for assemblerSebastian Wendt2023-10-121-0/+6
| |/ / | | | | | | | | | | | | | | | | | | | | | In commit e9eabb0dcd (ADSP: Configure compiler in compiler module, 2022-03-24, v3.24.0-rc1~331^2~1) we added compiler information modules for the ADSP C and C++ compilers. Add one for the assembler too. We already identify the ADSP assembler since commit f83330ed6c (ASM: ADSP assembler identification, 2018-01-30, v3.11.0-rc1~35^2).
* | | Merge topic 'remove-comeau'Brad King2023-10-172-12/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 957670683d Comeau: Remove undocumented support for this compiler Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8881
| * | | Comeau: Remove undocumented support for this compilerscivision2023-10-162-12/+0
| |/ / | | | | | | | | | | | | This appears to be from CMake 2.8 era and was undocumented. Comeau last release 2008.
* | | Merge topic 'linker-user-selection'Brad King2023-10-1617-2/+76
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | 96a953b1ed Add options to specify linker tool Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8861
| * | Add options to specify linker toolMarc Chevrier2023-10-1317-2/+76
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Offer the capability, through variable `CMAKE_LINKER_TYPE`, as well as the target property `LINKER_TYPE` to specify which linker must be used. The implementation of this capability is specified by variables specific to the language and linker type: `CMAKE_<LANG>_USING_LINKER_<TYPE>`. Some definitions are provided as part of `CMake`. For example, to select the `LLVM` linker rather than the standard one, the type `LLD` should be specified through the variable `CMAKE_LINKER_TYPE`. And, on `Apple`, `Linux` and some environments on `Windows`, the variable `CMAKE_<LANG>_USING_LINKER_LLD` has value `-fuse-ld=lld`. And for `Windows` environments based on `MSVC`, where the linker is used directly, the tool `lld-link.exe` will be used rather than `link.exe`. Fixes: #19174, #24254, #24990
* | PGI/NVHPC: Remove -Mipa compiler option for 23.3+مهدي شينون (Mehdi Chinoune)2023-10-131-1/+1
|/ | | | | | | | `-Mipa` was removed since 23.3. The compiler warns about it: nvfortran-Warning-The option -Mipa has been deprecated and is ignored. See: https://docs.nvidia.com/hpc-sdk/archive/23.9/hpc-sdk-release-notes/index.html#deprecations
* FindRuby: Add support for 3.2Heiko Becker2023-10-101-6/+6
|
* Merge topic 'findcuda_toolkit_restore_lib_search_dir' into release-3.28Brad King2023-10-061-1/+0
|\ | | | | | | | | | | | | 0b6ae9c467 FindCUDAToolkit: Restore CUDAToolkit_LIBRARY_SEARCH_DIRS variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8859
| * FindCUDAToolkit: Restore CUDAToolkit_LIBRARY_SEARCH_DIRS variableRobert Maynard2023-10-041-1/+0
| | | | | | | | | | This was accidentally dropped by commit 4316d4dcfd (FindCUDAToolkit: Search all of `nvcc` implicit includes and library dirs, 2023-09-26).
* | Merge topic 'FindPkgConfig-error' into release-3.28Brad King2023-10-041-3/+3
|\ \ | | | | | | | | | | | | | | | | | | 4c96b31e4b FindPkgConfig: Report not-found package names in fatal error message Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8856
| * | FindPkgConfig: Report not-found package names in fatal error messageAnthony Baker2023-10-031-3/+3
| |/
* | Merge topic 'LLVMFlang-MSVC' into release-3.28Brad King2023-10-048-48/+196
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | 26bf32cdc6 LLVMFlang: Add support for targeting MSVC ABI on Windows e9af7b9687 LLVMFlang: Add support for CMAKE_Fortran_COMPILER_TARGET 26fa048ffe Tests: Enable CMP0091/CMP0141 for MSVC settings in FortranOnly test 9d060b8682 Fortran: Save CMAKE_LINKER variable persistently for MSVC ABI 7571e653f4 CMakeDetermineCompilerABI: Add option to skip implicit link info parsing 12733d0d8d CMakeParseImplicitLinkInfo: Detect link lines using link.exe and lld-link Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8852
| * LLVMFlang: Add support for targeting MSVC ABI on WindowsBrad King2023-10-035-9/+142
| | | | | | | | | | | | | | | | | | | | The compiler does not yet support everything needed to integrate well with the MSVC ABI, in particular for runtime library selection and debug format selection. Document them in FIXME comments and leave this support undocumented by CMake for now. Fixes: #24840 Inspired-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
| * LLVMFlang: Add support for CMAKE_Fortran_COMPILER_TARGETBrad King2023-10-021-0/+2
| |
| * Fortran: Save CMAKE_LINKER variable persistently for MSVC ABIBrad King2023-10-021-1/+2
| | | | | | | | We already do this for other languages including C and CXX.
| * CMakeDetermineCompilerABI: Add option to skip implicit link info parsingBrad King2023-10-021-32/+40
| | | | | | | | Provide a way to do the parsing earlier and not overwrite it here.
| * CMakeParseImplicitLinkInfo: Detect link lines using link.exe and lld-linkBrad King2023-10-021-6/+10
| | | | | | | | | | | | These are printed by LLVM-based compiler drivers targeting the MSVC ABI. In our use case for this, `CMAKE_LINKER` may not yet be known, so do not include it in the test data.
* | Merge topic 'FindPostgreSQL-16'Brad King2023-10-031-2/+2
|\ \ | | | | | | | | | | | | | | | | | | 25644a78de FindPostgreSQL: Add support for version 16 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8854
| * | FindPostgreSQL: Add support for version 16Brad King2023-10-021-2/+2
| | | | | | | | | | | | Fixes: #25292
* | | Merge topic 'cxxmodules-no-longer-experimental'Brad King2023-10-023-13/+13
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 437280b127 cxxmodules: scan C++ sources for imports by default 3cddd11649 Ninja: message about not compiled sources explicitly 068fde1c34 cmGeneratorTarget: use `this->` for method calls 197a6bf171 cxxmodules: rework control logic for scanning regular C++ sources 5eb7bd641a Tests/RunCMake/CXXModules: remove rules file requirement ff18acc301 CXXModules: remove `EXPERIMENTAL` from C++ module variable names 0c07f39006 cmExperimental: remove the flag for C++ modules 68caec9137 Help: add a manpage for cxxmodule support Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Pavel Solodovnikov <hellyeahdominate@gmail.com> Merge-request: !8828
| * | | CXXModules: remove `EXPERIMENTAL` from C++ module variable namesBen Boeckel2023-10-023-13/+13
| | | |
* | | | FindQt4: Fix typo in documentation formattingBrad King2023-10-021-1/+1
| | | |
* | | | Merge topic 'ExternalProject-declare-download-byproducts'Craig Scott2023-10-011-5/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 872daff159 ExternalProject: declare byproducts for the download step Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8823
| * | | | ExternalProject: declare byproducts for the download stepBen Boeckel2023-09-301-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | | This can surface a conflict where two projects download the same file and get scheduled against each other.
* | | | | Merge topic 'FindCUDAToolkit-implicit-dirs'Brad King2023-09-291-19/+95
|\ \ \ \ \ | |_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | 4316d4dcfd FindCUDAToolkit: Search all of `nvcc` implicit includes and library dirs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8835
| * | | | FindCUDAToolkit: Search all of `nvcc` implicit includes and library dirsRobert Maynard2023-09-271-19/+95
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Improves the handling of CUDA layouts where we have multiple include and library directories listed in the output of `nvcc -v`. This updates both when the CUDA language is enabled or not. Fixes: #24915
* | | | Merge topic 'android-clang-c++23'Brad King2023-09-281-1/+8
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 75e9918a66 Android: Require Clang 18 for -std=c++23 Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Raul Tambre <raul@tambre.ee> Merge-request: !8847
| * | Android: Require Clang 18 for -std=c++23Brad King2023-09-271-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the Clang version checks added by * commit eacacc70fc (Clang: use -std=c++23 for Clang 17.0+, 2023-05-08, v3.27.0-rc1~115^2) * commit 0183956d30 (Clang: C++26 support, 2023-05-16, v3.27.0-rc1~85^2) to account for Android NDK r26's distribution of a Clang based on a development version of LLVM/Clang 17.0 that pre-dated addition of these flags. Follow the pattern from commit 12e6796b62 (Android: Do not pass non-existent Clang -std flags, 2018-04-02, v3.12.0-rc1~284^2), which fixed the same problem for `-std=c++17`. Fixes: #25281
| * | Merge topic 'FindBoost-1.83' into release-3.27Brad King2023-09-121-3/+17
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | 897a149067 FindBoost: Add support for Boost 1.83 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8793
* | \ \ Merge topic 'hip-nvidia'Brad King2023-09-264-62/+74
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fd982eec10 HIP: Add tests for special NVIDIA values of CMAKE_HIP_ARCHITECTURES 8c8b3f1bfa HIP: Fix support for -DCMAKE_HIP_ARCHITECTURES=native with NVCC b3e92775ab HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCC e43918b4ca HIP: Fix linking mixed-lang binary with CXX compiler and Makefile generators 4794505122 HIP: Do not require hip-lang package for NVIDIA platform 09d759dc7f HIP: Simplify exclusion of AMD device runtime with NVIDIA GPUs 2a60663670 HIP: Simplify CMAKE_GENERATOR references for determining compiler 8124950f6c CUDA: Generalize CMAKE_{CUDA => <LANG>}_HOST_COMPILER variable docs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8836
| * | | | HIP: Fix support for -DCMAKE_HIP_ARCHITECTURES=native with NVCCBrad King2023-09-251-4/+4
| | | | |
| * | | | HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCCBrad King2023-09-252-2/+12
| | | | | | | | | | | | | | | | | | | | Also add `HIPHOSTCXX` environment variable.
| * | | | HIP: Do not require hip-lang package for NVIDIA platformBrad King2023-09-251-45/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ROCm may not install the `hip-lang` cmake package on NVIDIA platforms. Skip verifying its presence. We do not use it for NVIDIA platforms anyway. Fixes: #25271
| * | | | HIP: Simplify exclusion of AMD device runtime with NVIDIA GPUsBrad King2023-09-251-4/+2
| | | | |
| * | | | HIP: Simplify CMAKE_GENERATOR references for determining compilerBrad King2023-09-251-2/+2
| | | | |
| * | | | CUDA: Generalize CMAKE_{CUDA => <LANG>}_HOST_COMPILER variable docsBrad King2023-09-251-5/+5
| | | | |
* | | | | Merge topic 'FindOpenMP-macOS-LLVM-Clang'Brad King2023-09-261-2/+3
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3cff031c9a FindOpenMP: Handle non-Apple clang on macOS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8832
| * | | | | FindOpenMP: Handle non-Apple clang on macOSKeno Fischer2023-09-241-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | I was noticing that FindOpenMP was failing to find my openmp installation on macos when building with a custom-compiled clang. Upon inspection it appears that FindOpenMP is looking for `AppleClang` as a compiler identification and the `Clang` case is only applicable for Win32. Try to fix that by treating custom `Clang` on macos the same as `AppleClang`.
* | | | | | Merge topic 'orangec-compiler'Brad King2023-09-2610-0/+111
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f8fa4f1ad7 ci: Add OrangeC 6.73.1 nightly CI job 531b4fe643 OrangeC: Add support for OrangeC compiler 10f435a58f Tests: Simplify nested if conditions in Complex tests Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Victor <lostfreeman@gmail.com> Merge-request: !8592