summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | | | | CompilerId: Clarify CUDA, HIP, ObjC, ObjC++ standard level detectionBrad King2024-04-164-19/+52
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use named constants. Regularize comparison patterns. Follow the approach from commit b9d4db7098 (CompilerId: Clarify C and C++ standard level detection, 2024-04-02).
| * | | | | | CompilerId: Drop MSVC conditions from ObjC and ObjC++Brad King2024-04-162-6/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | MSVC does not compile these languages.
| * | | | | | ObjCXX: Fix detection of C++20 default compiler modeRaul Tambre2024-04-161-1/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Fix a typo from commit 9f3c70a333 (CUDA, CXX, OBJCXX: C++23 support with Clang 12, 2020-12-04, v3.20.0-rc1~321^2).
* | | | | | Merge topic 'FindBoost-1.85'Brad King2024-04-171-2/+2
|\ \ \ \ \ \ | |/ / / / / |/| | / / / | | |/ / / | |/| | | | | | | | | | | | | 0d5953b373 FindBoost: Add support for Boost 1.85 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9435
| * | | | FindBoost: Add support for Boost 1.85Brad King2024-04-161-2/+2
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the list of known versions. Run the command cmake -DBOOST_DIR=/path/to/boost_1_85_0 \ -P Utilities/Scripts/BoostScanDeps.cmake to extract dependencies from the 1.85.0 source tree. They are the same as 1.84's dependencies, so just update the version check for warning about newer versions. Fixes: #25905
* | | | Merge topic 'nag-fortran-ninja'Brad King2024-04-162-3/+18
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4af20bb794 NAG-Fortran: Do not repeat preprocessing with Ninja on Apple platforms 91bb8dd872 NAG-Fortran: Fix MODULE library creation on Apple platforms e056006116 NAG-Fortran: Tell the Ninja generator how to preprocess Fortran sources 765a611956 NAG-Fortran: Added initial default compilation flags Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9407
| * | | | NAG-Fortran: Do not repeat preprocessing with Ninja on Apple platformsSimon Maertens2024-04-151-3/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Ninja generator uses separate preprocessing and compilation steps. Do not pass `-fpp` when compiling an already-preprocessed source. Issue: #25900
| * | | | NAG-Fortran: Fix MODULE library creation on Apple platformsSimon Maertens2024-04-151-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Previously we passed `-bundle` to the NAG Fortran front-end, which does not support it. Pass it through to the linker instead.
| * | | | NAG-Fortran: Tell the Ninja generator how to preprocess Fortran sourcesSimon Maertens2024-04-151-0/+3
| | | | | | | | | | | | | | | | | | | | Fixes: #21398
| * | | | NAG-Fortran: Added initial default compilation flagsSimon Maertens2024-04-151-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | The configuration of the NAG Fortran compiler was previously missing the standard flags for debug, release and the other build types.
* | | | | Merge topic 'FindBacktrace-imported-library'Brad King2024-04-161-0/+22
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 9433755e5d FindBacktrace: Add imported library Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9406
| * | | | | FindBacktrace: Add imported libraryDavid Faure2024-04-151-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to avoid (a future version of) Qt from having to wrap FindBacktrace like [1]. [1] https://code.qt.io/cgit/qt/qtbase.git/tree/cmake/FindWrapBacktrace.cmake
* | | | | | Merge topic 'findgtk2-fix'Brad King2024-04-161-0/+21
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7e49b98219 FindGTK2: Find arch-specific headers via pkg-config Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9417
| * | | | | | FindGTK2: Find arch-specific headers via pkg-configMaxim Cournoyer2024-04-151-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25884
* | | | | | | Merge topic 'swift-module-libraries'Brad King2024-04-163-2/+7
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 56e5cea600 Swift: Support module libraries with command-line build systems Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9379
| * | | | | | | Swift: Support module libraries with command-line build systemsEvan Wilde2024-04-153-2/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wire up the flags needed to support module libraries built and used with Swift. We need to pass `-bundle` to the linker when linking module libraries on Darwin, and we need to pass `-export-dynamic` to the linker when emitting an executable that exports symbols on Linux. This patch wires up `CMAKE_SHARED_MODULE_CREATE_Swift_FLAGS` and `CMAKE_SHARED_MODULE_LOADER_Swift_FLAG` on Darwin, and hooks up `CMAKE_EXE_EXPORTS_Swift_FLAG` on Linux in order to support passing things correctly. We can't expose `CMAKE_EXE_LINKER_FLAGS` to Swift, as it contains flags that the Swift compiler doesn't recognize, but the other language-specific variables are safe to expose.
* | | | | | | | Merge topic 'cxxmodules-import-std'Brad King2024-04-157-0/+351
|\ \ \ \ \ \ \ \ | |_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 429902ebad Clang: support creating a target for imported modules 4617f272b4 MSVC: support `import std` 62a71047bb cmGraphVizWriter: ignore `__cmake_`-prefixed targets 442086c1dc fileapi: ignore `__cmake_`-prefixed targets ffe74289b3 CMakeDetermineCompilerId: extract C++ standard library impl 15bbd1d9b8 Experimental: add an experimental feature gate for `import std` f80c60df02 CMakeDetermineCompilerSupport: construct C++ modules targets 19341e2582 ci: enable `import_std23` C++ module tests on MSVC ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !9337
| * | | | | | | Clang: support creating a target for imported modulesBen Boeckel2024-04-121-0/+153
| | | | | | | |
| * | | | | | | MSVC: support `import std`Ben Boeckel2024-04-121-0/+102
| | | | | | | |
| * | | | | | | CMakeDetermineCompilerId: extract C++ standard library implBen Boeckel2024-04-122-0/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is needed for C++ modules because `import std` support may differ based on the standard library implementation. Extract the information as necessary.
| * | | | | | | Experimental: add an experimental feature gate for `import std`Ben Boeckel2024-04-121-0/+11
| | | | | | | |
| * | | | | | | CMakeDetermineCompilerSupport: construct C++ modules targetsBen Boeckel2024-04-123-0/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Compilers may implement this by implementing a `_cmake_cxx_import_std` function which takes the standard version as an argument (e.g., `23`) and creating a target named `CMake::CXX${std}` that represents how `import std;` should be represented within CMake.
* | | | | | | | Merge topic 'aix-export-tdata'Brad King2024-04-121-1/+1
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b4d1ab42b8 AIX: Consider tdata symbols in ExportImportList Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9422
| * | | | | | | AIX: Consider tdata symbols in ExportImportListDavid Tenty2024-04-111-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Thread-local variables are put in the tdata section on AIX / XCOFF [1]. Unfortunately the ExportImportList script currently doesn't consider this section when looking for symbols to export. This results in linking failures in applications (such as LLVM) when building which expect these thread local variables to be exported from their shared libraries. [1]: https://www.ibm.com/docs/en/aix/7.3?topic=formats-xcoff-object-file-format
* | | | | | | | Merge topic 'restore-pkg-prefix-var'Brad King2024-04-111-35/+7
|\ \ \ \ \ \ \ \ | | |_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0e4db17764 CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9420
| * | | | | | | CMakePackageConfigHelpers: Restore undocumented PACKAGE_PREFIX_DIR variableBrad King2024-04-111-35/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 6ddf8712cd (CMakePackageConfigHelpers: Use unique variable name for pkg prefix, 2024-03-30, v3.29.1~8^2). It regressed existing projects that rely on the undocumented `PACKAGE_PREFIX_DIR` variable in package configuration files generated by `CMakePackageConfigHelpers`. Fixes: #25873 Fixes: #25885 Issue: #25827
* | | | | | | | Merge topic 'GenerateExportHeader-clang-tidy'Brad King2024-04-111-0/+1
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 461ae86e6f GenerateExportHeader: Suppress clang-tidy warning Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9418
| * | | | | | | | GenerateExportHeader: Suppress clang-tidy warningClausKlein2024-04-101-0/+1
| | |_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | Add `NOLINT` for `unconditional-preprocessor-if` in generated files.
* | | | | | | | Merge branch 'backport-FindJasper-imported-target'Brad King2024-04-101-2/+2
|\ \ \ \ \ \ \ \ | |/ / / / / / / |/| / / / / / / | |/ / / / / /
| * | | | | | FindJasper: Fix Jasper::Jasper IMPORTED_CONFIGURATIONSKai Pastor2024-04-101-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 6e8754c625 (FindJasper: Add IMPORTED target, 2021-10-06, v3.22.0-rc1~20^2) this property was not set correctly. This was detected by `CMP0160` because the `IMPORTED` property is read-only.
* | | | | | | C++26: Fix C++/CUDA/HIP compile feature supportRaul Tambre2024-04-094-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit f808d8afb9 (CMake: Support upcoming C++26 language level, 2022-08-19, v3.25.0-rc1~218^2) we forgot some necessary scaffolding. Fixes: #25819
* | | | | | | Clang: Fix detection of C++26 when targeting MSVC ABIBrad King2024-04-091-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | `_MSVC_LANG` may not be defined higher than C++20, but `__cplusplus` is.
* | | | | | | Merge topic 'lang-std-levels'Brad King2024-04-085-35/+86
|\ \ \ \ \ \ \ | |_|_|_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 80a5a86514 GNU: Fix detection of C++ 11 mode in GCC 4.{4,5,6} c9cc3dc646 PGI: Fix detection of C++ 14/17 modes 7f05d472a2 NVHPC: Fix detection of C++ 20 mode on NVHPC < 22.7 3587579f34 XL/XLClang: Fix detection of C++ 14 mode on Linux 863cde8c19 Intel: Fix detection of C++ 14/17 modes on Linux/macOS 1e774a86d3 Intel: Fix detection of C++ 17/20 modes on Windows b9d4db7098 CompilerId: Clarify C and C++ standard level detection ae18811f2e IntelLLVM: Add C standard flags on Windows ... Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9412
| * | | | | | GNU: Fix detection of C++ 11 mode in GCC 4.{4,5,6}Brad King2024-04-051-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These versions of the compiler have experimental C++11 support and so do not define `__cplusplus` correctly, but do define a feature macro we can use to distinguish this mode.
| * | | | | | PGI: Fix detection of C++ 14/17 modesBrad King2024-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The PGI compiler is based on EDG. Share conditions with Intel Classic.
| * | | | | | NVHPC: Fix detection of C++ 20 mode on NVHPC < 22.7Brad King2024-04-051-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compiler does not always define `__cplusplus` correctly, but does define a feature macro that we can use to distinguish this mode.
| * | | | | | XL/XLClang: Fix detection of C++ 14 mode on LinuxBrad King2024-04-041-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This compiler does not always define `__cplusplus` correctly, but does define a feature macro that we can use to distinguish this mode.
| * | | | | | Intel: Fix detection of C++ 14/17 modes on Linux/macOSBrad King2024-04-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Intel Classic C++ compiler is based on EDG. It does not always define `__cplusplus` correctly, but does define feature macros that we can use to distinguish these modes.
| * | | | | | Intel: Fix detection of C++ 17/20 modes on WindowsBrad King2024-04-041-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The Intel Classic C++ compiler for Windows does not always define `_MSVC_LANG` correctly, but does define feature macros that we can use to distinguish these modes.
| * | | | | | CompilerId: Clarify C and C++ standard level detectionBrad King2024-04-042-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Use named constants. Regularize comparison patterns.
| * | | | | | IntelLLVM: Add C standard flags on WindowsBrad King2024-04-031-11/+10
| | | | | | |
| * | | | | | IntelLLVM: Use C23 and C++23 flags only versions supporting themBrad King2024-04-032-8/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revise commit 4331f7b4bf (IntelLLVM: Add provisional flags for C23 and C++23, 2023-01-12, v3.26.0-rc1~86^2).
| * | | | | | Intel: Fix classic compiler version check for C++20 flagBrad King2024-04-031-1/+1
| | |/ / / / | |/| | | | | | | | | | | | | | | | The `-std=c++20` flag was added by Intel compiler 2019 update 3.
* | | | | | Merge topic 'FindOpenSSL-SLP-layout'Brad King2024-04-041-4/+8
|\ \ \ \ \ \ | | |/ / / / | |/| / / / | |_|/ / / |/| | | | | | | | | | | | | | | | | | | 9ff5dae3f6 FindOpenSSL: Update layout for Shining Light Productions debug libraries aa86f487c2 FindOpenSSL: Update layout for Shining Light Productions 32-bit package Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9402
| * | | | FindOpenSSL: Update layout for Shining Light Productions debug librariesMatthias Isele2024-04-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The installer no longer names debug libraries with a `d` suffix. They are distinguished by the per-runtime-library directory containing them. Fixes: #25856
| * | | | FindOpenSSL: Update layout for Shining Light Productions 32-bit packageMatthias Isele2024-04-031-4/+6
| | | | | | | | | | | | | | | | | | | | Issue: #25856
| * | | | Merge topic 'artos-lib-prefix' into release-3.29Brad King2024-04-031-1/+1
| |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e6b63b5cb2 ARTOS: Add support for finding library files named with 'lib' prefix Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Bert Ezendam <bert.ezendam@alliander.com> Merge-request: !9399
| * \ \ \ \ Merge topic 'vs-intel-oneapi' into release-3.29Brad King2024-04-032-45/+34
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3f5cd0389f IntelLLVM: Fix link flags with Visual Studio generators Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9398
* | \ \ \ \ \ Merge topic 'FindCUDAToolkit-doc-linkcheck'Brad King2024-04-031-16/+16
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 480cf4a714 FindCUDAToolkit: Replace documentation links with their permanent redirects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9397
| * | | | | | | FindCUDAToolkit: Replace documentation links with their permanent redirectsBrad King2024-04-021-16/+16
| | |_|_|/ / / | |/| | | | |