summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'export-find_dependency-calls'Brad King2023-11-141-0/+23
|\ | | | | | | | | | | | | | | | | | | | | | | 0ad8fc5a63 FetchContent: Set CMAKE_EXPORT_FIND_PACKAGE_NAME c6e6861e63 install(EXPORT): Export find_dependency() calls 2837f592ab cmExportFileGenerator: Add function to set required CMake version e62a3b8625 Help/export: Add signature directives Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Brad King <brad.king@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !8957
| * FetchContent: Set CMAKE_EXPORT_FIND_PACKAGE_NAMEKyle Edwards2023-11-131-0/+23
| |
* | Merge topic 'FindBLAS-LAPACK-OpenBLAS-mingw'Brad King2023-11-142-2/+10
|\ \ | | | | | | | | | | | | | | | | | | 6ce94ae0b7 Find{BLAS,LAPACK}: Fix OpenBLAS ILP64 support with MSYS2 packages Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8968
| * | Find{BLAS,LAPACK}: Fix OpenBLAS ILP64 support with MSYS2 packagesMartin Köhler2023-11-132-2/+10
| |/ | | | | | | | | Typically, ILP64 BLAS libraries are suffixed with `64`, but the MSYS2 package provides the ILP64 version of OpenBLAS with a `_64` suffix.
* | Merge topic 'FindOpenMP-5.1-and-5.2'Brad King2023-11-141-0/+2
|\ \ | |/ |/| | | | | | | | | | | | | 2859be7575 FindOpenMP: Add support for openmp 5.1 (llvm 17) and 5.2 Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Markus Mützel <markus.muetzel@gmx.de> Merge-request: !8965
| * FindOpenMP: Add support for openmp 5.1 (llvm 17) and 5.2Christoph Reiter2023-11-131-0/+2
| | | | | | | | | | | | | | | | llvm 17 now defaults to openmp 5.1; see LLVM commit `0c6f2f629cc0`. It makes FindOpenMP set OPENMP_FOUND and OpenMP_C_SPEC_DATE, but not OpenMP_C_VERSION, because it doesn't know the version mapping. Add the spec date to the version mapping for 5.1 and 5.2 to make things work again.
* | Merge topic 'link-deduplicate-libs'Brad King2023-11-135-0/+9
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | 7b99c42e57 Link step: Enable to configure deduplication of libraries 07501c1678 Link Step: Introduce EntriesProcessing class Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !8946
| * | Link step: Enable to configure deduplication of librariesMarc Chevrier2023-11-095-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Some platforms, Apple or Windows for instance, do not require to duplicate static libraries to resolve mutual dependencies. Moreover, Xcode version 15 emits a warning if a library is duplicated. On Windows, enable a better control of libraries order. Fixes: #20722, #25297
* | | Merge topic 'find_cudatoolkit_cufile_name'Brad King2023-11-091-4/+4
|\ \ \ | |/ / |/| | | | | | | | | | | | | | b38a8e77cb FindCUDAToolkit: Search for cufile library name being lowercase Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8955
| * | FindCUDAToolkit: Search for cufile library name being lowercaseRobert Maynard2023-11-081-4/+4
| | | | | | | | | | | | Fixes #25398
* | | CUDA: Support CMAKE_TRY_COMPILE_TARGET_TYPE of STATIC_LIBRARYRobert Maynard2023-11-071-0/+1
| | |
* | | Merge topic 'CMakeDetermineFortranCompiler-typo'Brad King2023-11-071-1/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | e82a8ab197 CMakeDetermineFortranCompiler: Fix typo in comment (CC -> FC) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8945
| * | | CMakeDetermineFortranCompiler: Fix typo in comment (CC -> FC)Sylwester Arabas2023-11-061-1/+1
| | | |
* | | | Merge topic 'FetchContent-GHS'Craig Scott2023-11-052-0/+17
|\ \ \ \ | |/ / / |/| | | | | | | | | | | | | | | | | | | 6a81104413 FetchContent: Pass GHS Variables to subbuild Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8930
| * | | FetchContent: Pass GHS Variables to subbuildWilliam Sciaroni2023-11-042-0/+17
| | | | | | | | | | | | | | | | Fixes: #24244
* | | | CMakeFindPackageMode: Link to cmake --find-package documentation權少2023-11-031-4/+3
| | | |
* | | | Merge topic 'cuda-vs'Brad King2023-11-023-22/+7
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f0feefceb3 Merge branch 'backport-cuda-vs' into cuda-vs 79f3f29e50 CUDA: Parse NVCC implicit compile/link information in Visual Studio generators 27e64a8498 CMakeNVCCParseImplicitInfo: Recognize link.exe line in CUDA VS integration 677992d85a CMakeParseImplicitLinkInfo: Log exclusion of MSVC link /implib: flag 045399a461 CMakeParseImplicitLinkInfo: Ignore MSVC link /implib: flag Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Robert Maynard <robertjmaynard@gmail.com> Merge-request: !8938
| * \ \ \ Merge branch 'backport-cuda-vs' into cuda-vsBrad King2023-11-012-20/+4
| |\ \ \ \ | | | |/ / | | |/| |
| | * | | CUDA: Parse NVCC implicit compile/link information in Visual Studio generatorsBrad King2023-11-011-20/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactoring in commit deff0e638d (CUDA: Factor out helper to parse NVCC implicit compiler and linker flags, 2023-09-15, v3.28.0-rc1~63^2~6) incorrectly dropped detection of the default CUDA architecture and the CUDA toolkit include directories from the code path used for Visual Studio generators. However, CMakeNVCCParseImplicitInfo is now general enough that we no longer need a VS-specific code path. Fixes: #25378
| | * | | CMakeNVCCParseImplicitInfo: Recognize link.exe line in CUDA VS integrationBrad King2023-11-011-0/+3
| | | | |
| | * | | CMakeParseImplicitLinkInfo: Ignore MSVC link /implib: flagBrad King2023-11-011-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | The flag specifies the import library for the linked binary. It is not a linked library.
| | * | | Merge topic 'revert-GetPrerequisites-linux-x86' into release-3.28Brad King2023-11-011-1/+1
| | |\ \ \ | | | | |/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | 139df0bc2f GetPrerequisites: Revert "Ignore relative paths printed by ldd" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8933
| | * | | Merge topic 'FindFreeType-config-windows' into release-3.28Brad King2023-10-311-2/+32
| | |\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0117446c97 FindFreeType: also set `FREETYPE_FOUND` 2cf2d4f7df FindFreeType: insert Freetype's location to the start 1cfc708eea FindFreeType: handle config-specific `LOCATION` settings as well ae9890cd36 FindFreeType: consider `IMPLIB`-using platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8920
| * | | | | CMakeParseImplicitLinkInfo: Log exclusion of MSVC link /implib: flagBrad King2023-11-011-2/+3
| | | | | |
* | | | | | Merge topic 'Genex-LINK_LIBRARY-updates'Brad King2023-11-021-4/+4
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1b8ceaef85 Genex LINK_LIBRARY: fix some definitions for Apple platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8936
| * | | | | | Genex LINK_LIBRARY: fix some definitions for Apple platformsMarc Chevrier2023-11-011-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Some declarations were inconsistent. For example, "LINKER:-force_load <LIBRARY>" was translated to "-Xlinker -force_load /path/to/library". The correct translation should be "-Xlinker -force_load -Xlinker /path/to/library" because the library is an argument to the -force_load option.
* | | | | | | Merge topic 'findwxwidgets-lexilla'Brad King2023-11-021-27/+55
|\ \ \ \ \ \ \ | |_|/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 90b77e3783 FindwxWidgets: link with lexilla f8831a0c9e FindwxWidgets: Convert include and library paths to cmake-style d76242ed9f FindwxWidgets: Prevent searching libraries multiple times 55072adf16 FindwxWidgets: Improve linking with scintilla c5e3d12213 FindwxWidgets: Move wx-config specific checks inside UNIX find-style 625023cace FindwxWidgets: Include hotfix number 35d90784e9 FindwxWidgets: use IN_LIST Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8927
| * | | | | | FindwxWidgets: link with lexillaMaarten Bent2023-11-011-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In wxWidgets 3.3 (development version) the Scintilla library has been split into two components: Scintilla and Lexilla.
| * | | | | | FindwxWidgets: Convert include and library paths to cmake-styleMaarten Bent2023-11-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes DBG_MSG errors when a path uses \ instead of /.
| * | | | | | FindwxWidgets: Prevent searching libraries multiple timesMaarten Bent2023-11-011-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | If the user has specified common libraries, remove the duplicates.
| * | | | | | FindwxWidgets: Improve linking with scintillaMaarten Bent2023-11-011-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Treat scintilla like any other common lib. Only add it when the stc component is specified. Add imm32 to the list of required libraries when stc is used. Fixes: #23519
| * | | | | | FindwxWidgets: Move wx-config specific checks inside UNIX find-styleMaarten Bent2023-11-011-20/+20
| | | | | | |
| * | | | | | FindwxWidgets: Include hotfix numberMaarten Bent2023-11-011-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add it to the wxWidgets_VERSION_STRING when it is not 0. Include hotfix numbers when searching for installation paths, for example wxWidgets-3.2.2.1. Fixes: #24823
| * | | | | | FindwxWidgets: use IN_LISTMaarten Bent2023-11-011-2/+6
| | | | | | |
| * | | | | | Merge topic 'findcuda_toolkit_restore_lib_search_dir'Brad King2023-10-061-1/+0
| |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b6ae9c467 FindCUDAToolkit: Restore CUDAToolkit_LIBRARY_SEARCH_DIRS variable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8859
| * \ \ \ \ \ \ Merge topic 'FindPkgConfig-error'Brad 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
| * \ \ \ \ \ \ \ Merge topic 'LLVMFlang-MSVC'Brad 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
* | \ \ \ \ \ \ \ \ Merge topic 'revert-GetPrerequisites-linux-x86'Brad King2023-11-011-1/+1
|\ \ \ \ \ \ \ \ \ \ | |_|_|_|_|/ / / / / |/| | | | | | | / / | | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 139df0bc2f GetPrerequisites: Revert "Ignore relative paths printed by ldd" Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8933
| * | | | | | | | GetPrerequisites: Revert "Ignore relative paths printed by ldd"Brad King2023-10-311-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit cf2ad9995a (GetPrerequisites: Ignore relative paths printed by ldd, 2023-02-20, v3.27.0-rc1~459^2) because it regressed existing use cases. We will need to find another solution to the use case motivating the change. Fixes: #25372
* | | | | | | | | Merge topic 'UseEcos-doc'Brad King2023-10-311-15/+25
|\ \ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0b95d0ca0f UseEcos: Improve documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8931
| * | | | | | | | | UseEcos: Improve documentation formatting權少2023-10-311-15/+25
| | | | | | | | | |
* | | | | | | | | | Merge topic 'FindFreeType-config-windows'Brad King2023-10-311-2/+32
|\ \ \ \ \ \ \ \ \ \ | |/ / / / / / / / / |/| | | | | | | / / | | |_|_|_|_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0117446c97 FindFreeType: also set `FREETYPE_FOUND` 2cf2d4f7df FindFreeType: insert Freetype's location to the start 1cfc708eea FindFreeType: handle config-specific `LOCATION` settings as well ae9890cd36 FindFreeType: consider `IMPLIB`-using platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8920
| * | | | | | | | FindFreeType: also set `FREETYPE_FOUND`Ben Boeckel2023-10-301-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25371
| * | | | | | | | FindFreeType: insert Freetype's location to the startBen Boeckel2023-10-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This should help static builds satisfy dependencies by listing transitive libraries after freetype's.
| * | | | | | | | FindFreeType: handle config-specific `LOCATION` settings as wellBen Boeckel2023-10-281-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `vcpkg` builds release and debug variants on platforms other than Windows (which uses the `IMPLIB` properties).
| * | | | | | | | FindFreeType: consider `IMPLIB`-using platformsBen Boeckel2023-10-261-1/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | See: https://github.com/microsoft/vcpkg/issues/34725
* | | | | | | | | Merge topic 'FindOpenThreads-doc'Brad King2023-10-301-12/+18
|\ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bc1f0f6e0f FindOpenThreads: Update documentation Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8929
| * | | | | | | | FindOpenThreads: Update documentation權少2023-10-301-12/+18
| | | | | | | | |
* | | | | | | | | Merge topic 'FindProtobuf-restore-protoc-include-path'Brad King2023-10-301-4/+2
|\ \ \ \ \ \ \ \ \ | |/ / / / / / / / |/| | | | | | | / | | |_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d7f7bf08cd FindProtobuf: Fix protoc include path regression Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Matias Lopez <mlopez203@bloomberg.net> Merge-request: !8922
| * | | | | | | FindProtobuf: Fix protoc include path regressionAndré Apitzsch2023-10-271-4/+2
| |/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was accidentally broken by commit 31adc11030 (FindProtobuf: Add PLUGIN_OPTIONS and PROTOC_OPTIONS to protobuf_generate, 2023-06-29, v3.28.0-rc1~409^2~2). Fixes: #25368