summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'FindPerl-doc'Brad King2023-12-011-6/+11
|\ | | | | | | | | | | | | | | aca215fbe0 FindPerl: Fix documentation word order dc3f264f9d FindPerl: Improve documentation formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9020
| * FindPerl: Fix documentation word order polarbub2023-11-301-2/+2
| |
| * FindPerl: Improve documentation formattingpolarbub2023-11-301-6/+11
| | | | | | | | Also modernize some wording.
* | Merge topic 'adsp-on-linux'Brad King2023-12-012-5/+10
|\ \ | |/ |/| | | | | | | | | | | | | | | 33e6862cbc ADSP: Allow progress with CMAKE_ADSP_ROOT unset 85e25451af ADSP: Add /opt/analog/cces to _find_adsp_root()'s search space 04d8a39e5c ADSP: Use find_program() to get path to cc21k/ccblkfn 7883178cae ADSP: Use $CMAKE_EXECUTABLE_SUFFIX in COMPILER_NAME Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9016
| * ADSP: Allow progress with CMAKE_ADSP_ROOT unsetJosh Channings2023-11-301-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a behavior change. You can still set ADSP_ROOT/CMAKE_ADSP_ROOT to hint the find_program() invocations for the CCES binaries, but it is no longer necessary if they are already in PATH. The reason is: CMAKE_ADSP_ROOT is only used to find the binaries. If they are in PATH, there is no need to supply the root path. If they are not in PATH, you can hint still hint it as before. The other option would be to use find_path() to get CMAKE_ADSP_ROOT from the path to one of the bins, but that would be convoluted and pointless. There are some circumstances where the binaries are available, but the ADSP install is not. For example, from my own dev environment: https://github.com/joshchngs/macos-sharc-tools Here, the `cc21k` et. al. binaries are actually shell scripts which launch the real binary inside a running VM.
| * ADSP: Add /opt/analog/cces to _find_adsp_root()'s search spaceJosh Channings2023-11-301-0/+3
| | | | | | | | This is the default install location on Linux.
| * ADSP: Use find_program() to get path to cc21k/ccblkfnJosh Channings2023-11-301-1/+6
| | | | | | | | | | | | This still uses CMAKE_ADSP_ROOT as the PATHS argument, so the same behavior should be retained - but now the Platform will work without needing to supply the root, if the binaries are already in $PATH.
| * ADSP: Use $CMAKE_EXECUTABLE_SUFFIX in COMPILER_NAMEJosh Channings2023-11-291-2/+2
| | | | | | | | The binaries are obviously not .exe-suffixed on Linux
* | Merge topic 'rpm-quoting'Brad King2023-11-301-5/+19
|\ \ | |/ |/| | | | | | | | | | | | | 5123e9e160 ci: unmask RPM tests on Fedora 39 bf22ac5263 CPack/RPM: Quote paths in rpm spec only if they have whitespace 75ea6207b7 CPack/RPM: Factor out helper to quote paths in generated rpm spec Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9005
| * CPack/RPM: Quote paths in rpm spec only if they have whitespaceBrad King2023-11-291-1/+6
| | | | | | | | | | | | | | | | | | | | | | RPM supports either whitespace with quoting or globbing without quoting. Prior to RPM 4.19 it accepted globbing in quotes, but it only globbed correctly without whitespace, where quoting was not necessary anyway. Starting in RPM 4.19, glob characters in quotes are considered literal. Fixes: #25421 Inspired-by: Ben Boeckel <ben.boeckel@kitware.com> See: https://github.com/rpm-software-management/rpm/commit/d44114f007f54f205ffa13d22724199fe50a137a
| * CPack/RPM: Factor out helper to quote paths in generated rpm specBrad King2023-11-291-5/+14
| |
* | Merge topic 'fix-install-jar-exports-warning'Brad King2023-11-281-2/+1
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | c17268ff0b UseJava: Increase maximum policy version in exported files to 3.27 4567c8205a Help/dev: Update UseJava export policy version in post-release development Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9004
| * | UseJava: Increase maximum policy version in exported files to 3.27Gold8562023-11-271-2/+1
| | | | | | | | | | | | | | | | | | | | | Extend commit c5f1af1ffe (export: Increase maximum policy version in exported files to 3.27, 2023-10-03) to cover UseJava too. Fixes: #22655
* | | Merge topic 'cpack-auto-suffixes'Brad King2023-11-282-2/+2
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 53991e62da CPack/RPM: Append .rpm to CPACK_RPM_FILE_NAME if missing f2a6d423da CPack/DEB: Append .deb to CPACK_DEBIAN_FILE_NAME if missing 907d4db558 Help: Format allowed CPACK_{DEB,RPM}_FILE_NAME values as definition list Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8880
| * | | CPack/RPM: Append .rpm to CPACK_RPM_FILE_NAME if missingAlex Neundorf2023-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we issued an error when the `.rpm` suffix is missing. Instead, append the suffix automatically. This matches the behavior of `CPACK_ARCHIVE_FILE_NAME`, to which the archive format suffix is automatically appended. With this change, developers can simply do set(CPACK_RPM_comp_FILE_NAME "${CPACK_ARCHIVE_comp_FILE_NAME}")
| * | | CPack/DEB: Append .deb to CPACK_DEBIAN_FILE_NAME if missingAlex Neundorf2023-11-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we issued an error when the `.deb` or `.ipk` suffix is missing. Instead, append the suffix `.deb` automatically. This matches the behavior of `CPACK_ARCHIVE_FILE_NAME`, to which the archive format suffix is automatically appended.
* | | | Merge topic 'vs-ifx'Brad King2023-11-272-2/+8
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | 43d218d970 VS: Add support for using Intel oneAPI Fortran compiler in .vfproj files 5c77facd78 VS: Fix Intel plugin version detection fallback Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9001
| * | | VS: Add support for using Intel oneAPI Fortran compiler in .vfproj filesBrad King2023-11-222-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `fortran={ifort,ifx}` field to `CMAKE_GENERATOR_TOOLSET` to specify which Intel Fortran compiler to use. Fixes: #25427
* | | | Merge topic 'gfortran-flags'Brad King2023-11-222-7/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4597fee41f GNU: Remove duplicate and unnecessary optimization flags for gfortran Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8994
| * | | | GNU: Remove duplicate and unnecessary optimization flags for gfortranBrad King2023-11-212-7/+8
| |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit a66004bee0 (Honor CMAKE_<LANG>_FLAGS[_<CONFIG>]_INIT set in toolchain files, 2016-07-05, v3.7.0-rc1~392^2) we've accidentally been adding extra optimization flags instead of replacing unwanted flags. Fixes: #25434
* | | | Merge topic 'clang-scan-deps-failed-scan'Brad King2023-11-221-1/+16
|\ \ \ \ | |/ / / |/| | / | | |/ | |/| | | | | | | | | | 77a7edb73f Clang-CXX: copy into the dyndep output on success Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Namniav W <namniav@gmail.com> Merge-request: !8991
| * | Clang-CXX: copy into the dyndep output on successBen Boeckel2023-11-211-1/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When `clang-scan-deps` fails to scan (e.g., bad source syntax, junk flags, etc.), the redirection unconditionally updates the file. If this fails, the `.ddi` file timestamp is updated. If the state is then reverted (e.g., the command line returns to the state of the last successful build), the updated file is not useful, but `ninja` does not rerun because: - the command hash matches the last successful run - the output file is newer than its inputs However, since the `.ddi` file has been updated with bogus contents from a failed scan, collation fails as the `rules` array is empty (or incomplete from a batch scan). If `clang-scan-deps` were properly aware of its output file, it could use this to not write the file if any inner scan fails. Requested in https://github.com/llvm/llvm-project/issues/72875. See: https://github.com/llvm/llvm-project/issues/72875 Fixes: #25429
* | | Merge topic 'modules-modern-foreach'Brad King2023-11-209-14/+14
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | ec2ad53d18 Modules: refactor compiler find to use modern foreach Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8986
| * | | Modules: refactor compiler find to use modern foreachMichael Hirsch2023-11-199-14/+14
| | | |
* | | | Merge topic 'ci-fedora-39'Brad King2023-11-2028-29/+29
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | cdd741ebf9 Merge branch 'backport-ci-fedora-39' into ci-fedora-39 9283b20659 ci: Suppress CPack/RPM tests pending fix for Fedora 39 18145e8745 ci: Update FindMPI test environment for mpich on Fedora 39 a8be80ccf2 ci: Drop now-unnecessary Clang rules for CXXModules tests 99238b23e9 ci: use Fedora 39 images and environments 57eadec617 ci: update Linux image to Fedora 39 653262162c clang-tidy module: Update to build against LLVM/Clang 17 2cf9a65835 clang-tidy: ignore warnings new in version 17 ... Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !8983
| * \ \ \ Merge branch 'backport-ci-fedora-39' into ci-fedora-39Brad King2023-11-1728-29/+29
| |\ \ \ \ | | |/ / / | |/| / / | | |/ /
| | * | codespell: Fix typosBrad King2023-11-1728-29/+29
| | | |
| | * | Merge topic 'FindOpenMP-5.1-and-5.2' into release-3.28Brad 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
* | | \ \ Merge topic 'cpack-wix-installscope'Brad King2023-11-192-0/+9
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 60661f6770 CPack/WiX: Make InstallScope configurable Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8954
| * | | | | CPack/WiX: Make InstallScope configurableMax Gaukler2023-11-162-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a new `CPACK_WIX_INSTALL_SCOPE` variable to set the `InstallScope` when using the default WiX template. Set the default to the bug-free value `perMachine`. Fixes: #20962
* | | | | | Merge topic 'swift-compilation-mode'Brad King2023-11-191-17/+29
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 0f80101b73 Tests: Update Swift tests to use CMP0157 NEW behavior c1d787e473 Swift: Add abstraction for compilation mode c39384f540 Tests: Simplify RunCMake.Swift conditions to enable use of Swift Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8918
| * | | | | Swift: Add abstraction for compilation modeEvan Wilde2023-11-171-17/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a `CMAKE_Swift_COMPILATION_MODE` variable and corresponding `Swift_COMPILATION_MODE` target property to control the compilation mode. Select among `wholemodule`, `singlefile`, and `incremental`. Add policy CMP0157 to remove the default `-wmo` flags in favor of the abstract setting. Issue: #25366
* | | | | | Merge topic 'UseSWIG-csharp-dllimport'Brad King2023-11-171-1/+1
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 342b1b8a69 UseSWIG: ensure generated CSharp source code is portable. Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8973
| * | | | | | UseSWIG: ensure generated CSharp source code is portable.Marc Chevrier2023-11-141-1/+1
| |/ / / / / | | | | | | | | | | | | | | | | | | Fixes: #25405
* | | | | | Merge topic 'FetchContent-find_package-args'Brad King2023-11-171-2/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 42dbdf8914 FetchContent: Fix syntax to forward FIND_PACKAGE_ARGS arguments correctly Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !8967
| * | | | | | FetchContent: Fix syntax to forward FIND_PACKAGE_ARGS arguments correctlyAdam Šulc2023-11-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we incorrectly mixed list operations with string operations.
* | | | | | | Merge topic 'install-export-xcframework'Brad King2023-11-162-0/+128
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 37bc3400cd CMakePackageConfigHelpers: Add generate_apple_platform_selection_file() 256bb0cc40 install(EXPORT): Add ability to point to .xcframework file a90968e044 cmExportBuildFileGenerator: Add structs for target exports Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Jason Juang <jasjuang@gmail.com> Merge-request: !8969
| * | | | | | | CMakePackageConfigHelpers: Add generate_apple_platform_selection_file()Kyle Edwards2023-11-152-0/+128
| | |_|/ / / / | |/| | | | | | | | | | | | | | | | | | | Issue: #25262
* | | | | | | Merge topic 'doc-find_package-advice'Brad King2023-11-151-0/+6
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | d007d304ff Help: FetchContent FIND_PACKAGE_ARGS REQUIRED usually inappropriate 6341267780 Help: Note ways CMAKE_..._FIND_PACKAGE_... vars can break projects Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !8951
| * | | | | | Help: FetchContent FIND_PACKAGE_ARGS REQUIRED usually inappropriateCraig Scott2023-11-071-0/+6
| | | | | | |
* | | | | | | 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