summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'lcc-updates-2024-01'Brad King2024-01-171-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 202f4b3161 Tests: Exclude some tests on broken libc on Elbrus 9dd0ab9c88 LCC: Make CMake build without warnings on LCC 1.21 1dbb31cea2 libarchive: avoid lchmod not implemented warning on old LCC 83af26d9ad LCC: Don't enable debugger on LCC that don't have <future> fa764ce311 liblzma: Make cmliblzma buildable on LCC 1.21 77e046b47c jsoncpp: fix missing template deletion support on LCC < 1.23 67de0c197b cmcurl: fix X509_STORE_up_ref issue not just on LCC 1.23, but on LCC <= 1.23 9bc2aba3b4 LCC: get rid of ambiguous assignments of {} for LCC ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9157
| * LCC: Correct C compiler default C standardsmakise-homura2024-01-161-1/+1
| |
* | Merge topic 'FindX11-Xdbe'Brad King2024-01-171-0/+12
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | b118132c5f FindX11: Add awareness of Xdbe Acked-by: Kitware Robot <kwrobot@kitware.com> Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com> Acked-by: Alex <leha-bot@yandex.ru> Merge-request: !9153
| * | FindX11: Add awareness of XdbeKristian Spangsege2024-01-161-0/+12
| |/ | | | | | | Fixes: #25591
* | Merge topic 'matlab-win'Brad King2024-01-171-61/+53
|\ \ | | | | | | | | | | | | | | | | | | | | | 42fbe01eba FindMatlab: Accept long version in matlab_get_release_name_from_version c608adc236 FindMatlab: Fix major.minor version lookups in Windows Registry Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9148
| * | FindMatlab: Accept long version in matlab_get_release_name_from_versionscivision2024-01-161-17/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make this work: matlab_get_release_name_from_version(${Matlab_VERSION}) which the user would expect. While at it, simplify this function code.
| * | FindMatlab: Fix major.minor version lookups in Windows Registryscivision2024-01-161-45/+47
| | | | | | | | | | | | | | | | | | | | | The registry key names use only the first two version components. Previously we were using the full versions. Fixes: #25582
* | | Merge topic 'FindMatlab-fix-version-without-versioninfoxml'Brad King2024-01-161-12/+13
|\ \ \ | |/ / | | / | |/ |/| | | | | 694727bb45 FindMatlab: Restore support for versions without VersionInfo.xml Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9151
| * FindMatlab: Restore support for versions without VersionInfo.xmlHermann von Kleist2024-01-121-12/+13
| | | | | | | | | | | | | | | | Report "unknown" in `_Matlab_VersionInfoXML` if file is missing. Fix omitted MATLAB root with unknown version from XML. Fixes: #25585 Fixes: #25586
| * Merge topic 'check_language_propagate_hip_platform' into release-3.28Brad King2024-01-051-2/+26
| |\ | | | | | | | | | | | | | | | | | | | | | ce9c6d0994 HIP: Propagate CMAKE_HIP_PLATFORM from/to the test project in check_language 9ba3fc91e5 HIP: Really forward CMAKE_HIP_HOST_COMPILER in check_language(HIP) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9121
| * \ Merge topic 'revert-ExternalProject-download-byproducts' into release-3.28Brad King2024-01-041-9/+5
| |\ \ | | | | | | | | | | | | | | | | | | | | | | | | fd3c9876c6 ExternalProject: revert `BYPRODUCTS` for download outputs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9097
* | \ \ Merge topic 'swift-implib'Brad King2024-01-111-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a2aad7eb8d Swift: fix Windows DLL import library support for CMP0157 NEW Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Acked-by: Jeremy Day <jadaytime@gmail.com> Merge-request: !9140
| * | | | Swift: fix Windows DLL import library support for CMP0157 NEWSaleem Abdulrasool2024-01-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was accidentally removed when the command templates were reorganized to introduce the new policy. Restore the flag in the shared library creation to ensure that we emit the import libraries to the correct location.
* | | | | Merge topic 'package-dispatch-apple'Brad King2024-01-112-66/+66
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2a398cd9b6 CMakePackageConfigHelpers: Clarify generate_apple_*_selection_file signatures Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9130
| * | | | | CMakePackageConfigHelpers: Clarify generate_apple_*_selection_file signaturesBrad King2024-01-052-66/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The helpers added by: * commit 37bc3400cd (CMakePackageConfigHelpers: Add generate_apple_platform_selection_file(), 2023-11-03) * commit 4ac5a2f866 (CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file(), 2023-12-19) were worded in terms of including package configuration files, but the actual functionality is to include files *from* package configuration files. The included files do not themselves need to be usable as package configuration files. Rename the options and clarify the documentation accordingly. Issue: #25262 Issue: #25516
* | | | | | FindCxxTest: Drop broken anchor on link to cxxtest project pageBrad King2024-01-101-1/+1
| |/ / / / |/| | | |
* | | | | Merge topic 'ewilde/swift-ninja-response-files'Brad King2024-01-091-0/+1
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | a6a5c43300 Swift/Ninja: Add support for response files Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9098
| * | | | | Swift/Ninja: Add support for response filesEvan Wilde2024-01-081-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Adding support for `CMAKE_NINJA_FORCE_RESPONSE_FILE` with Swift. Issue: #25490 Fixes: #25563
* | | | | | Merge topic 'cpack-nuget-readme'Brad King2024-01-092-0/+23
|\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ccde6f8048 CPack/NuGet: Add support for repository tag 2c616e85cf CPack/NuGet: Add support for readme tag Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9139
| * | | | | | CPack/NuGet: Add support for repository tagAlex Turbov2024-01-082-0/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #23703
| * | | | | | CPack/NuGet: Add support for readme tagAlex Turbov2024-01-082-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25542
* | | | | | | LCC: Add missing C/CXX compiler version checks for -std optionsmakise-homura2024-01-082-20/+39
| | | | | | |
* | | | | | | GetPrerequisites: Tolerate multiple leading '/' in system library pathsmakise-homura2024-01-081-1/+1
|/ / / / / / | | | | | | | | | | | | | | | | | | | | | | | | On OS Elbrus 8.x, we see a dependency on `//usr/lib/libpcre2-8.so.0`` in the Qt4Deploy test. Recognize it as a system path.
* | | | | | Merge topic 'link-stubs-transitively'Brad King2024-01-081-1/+4
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2c6ec6de15 Link to transitive dependencies on stub libraries only on some linkers dd4a6dff92 Link explicitly to private transitive dependencies on stub libraries 5f1bbdb3b3 Tests: Enable RunCMake.RuntimePath test on more platforms Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9050
| * | | | | Link explicitly to private transitive dependencies on stub librariesBrad King2024-01-041-1/+4
| |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We represent stub libraries, e.g., for CUDA, using imported `SHARED` library targets with only `IMPORTED_IMPLIB`, and no `IMPORTED_LOCATION`, to indicate that the stub file is meant only for linkers and not dynamic loaders. See commit 7351d590ee (cmTarget: Add a way to represent imported shared library stubs, 2023-07-17, v3.28.0-rc1~344^2) and commit fc6508921c (cmComputeLinkInformation: Restore soname lookup for non-imported targets, 2023-12-05, v3.28.0~4^2). If a shared library is linked to a stub, it has a `NEEDED` field populated with the `SONAME` found in the stub. When a dependent target links to such a shared library, some linkers want to find a library file on disk and load it to see what symbols it provides. This is necessary for linkers that enforce `--no-allow-shlib-undefined`. On hosts with only the stub library installed, e.g., with only the CUDA toolkit development package, the real runtime library corresponding to the stub's `SONAME` may not even exist, so no `-rpath-link` flag can help linkers find it. Pass the stub library to linkers explicitly so they can find it without searching.
* | | | | Merge topic 'FindPkgConfig-caching'Brad King2024-01-051-0/+6
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e50aaf8547 FindPkgConfig: Update cache variables after isystem extraction 8fe6196714 FindPkgConfig: Update cache variables after framework extraction Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9109
| * | | | | FindPkgConfig: Update cache variables after isystem extractionKai Pastor2024-01-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | Fixes: #25377
| * | | | | FindPkgConfig: Update cache variables after framework extractionKai Pastor2023-12-281-0/+3
| | | | | |
* | | | | | Merge topic 'check_language_propagate_hip_platform'Brad King2024-01-051-2/+26
|\ \ \ \ \ \ | |_|/ / / / |/| | | | / | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | ce9c6d0994 HIP: Propagate CMAKE_HIP_PLATFORM from/to the test project in check_language 9ba3fc91e5 HIP: Really forward CMAKE_HIP_HOST_COMPILER in check_language(HIP) Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9121
| * | | | HIP: Propagate CMAKE_HIP_PLATFORM from/to the test project in check_languageGergely Meszaros2024-01-041-1/+25
| | | | | | | | | | | | | | | | | | | | Fixes: #25541
| * | | | HIP: Really forward CMAKE_HIP_HOST_COMPILER in check_language(HIP)Gergely Meszaros2024-01-031-1/+1
| | |/ / | |/| | | | | | | | | | | | | | In commit b3e92775ab (HIP: Add CMAKE_HIP_HOST_COMPILER when compiler is NVCC, 2023-09-25, v3.28.0-rc1~44^2~2) we accidentally left this out.
* | | | Merge topic 'compute-compiler-linker'Brad King2024-01-042-17/+38
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 459d1cc095 Tests: Verify that linker tool is detected and identified where expected 6aec4739c1 LinkerId: Record detection steps to configure log ba5f8dbba3 LinkerId: Use empty string for unknown linker id 6cbd0658c5 LinkerId: Match Apple linker on all Apple platforms 9324668517 LinkerId: Fix detection of GNU linker id without parenthesis in version output 37bc148870 LinkerId: Fix detection of linker tool without path 6e527c2d38 LinkerId: Fix detection of linker tool for Clang on OpenBSD 455aed3061 LinkerId: Fix detection of linker tool for MSVC ... Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9086
| * | | | LinkerId: Record detection steps to configure logBrad King2024-01-031-0/+7
| | | | |
| * | | | LinkerId: Use empty string for unknown linker idBrad King2024-01-031-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit c26c6ac488 (Link Step: compute effective linker used by the compiler, 2023-05-27) we used `UNKNOWN` if the linker id is not known. This convention is not used elsewhere, and logic using the linker id is easier when `if(CMAKE_C_COMPILER_LINKER_ID)` is false on unknown id.
| * | | | LinkerId: Match Apple linker on all Apple platformsBrad King2024-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `cmake_determine_linker_id` is only used for macOS because Apple device platforms set `_CMAKE_FEATURE_DETECTION_TARGET_TYPE` to `STATIC_LIBRARY`, but we might as well prepare for them anyway.
| * | | | LinkerId: Fix detection of GNU linker id without parenthesis in version outputBrad King2024-01-031-2/+2
| | | | |
| * | | | LinkerId: Fix detection of linker tool without pathBrad King2024-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Some compiler drivers invoke the linker tool as just `ld`, with no path, expecting it to be in the `PATH`.
| * | | | LinkerId: Fix detection of linker tool for Clang on OpenBSDBrad King2024-01-031-1/+1
| | | | | | | | | | | | | | | | | | | | Do not match quotes as part of the path.
| * | | | LinkerId: Fix detection of linker tool for MSVCBrad King2024-01-031-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously we matched an entire build system output line and then extracted the relevant portion in a separate brittle step. Match it directly. Use the `CMAKE_LINKER` value directly if available.
| * | | | LinkerId: Fix detection of linker tool for GNU on SunOS sparc32Brad King2024-01-031-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We do not use `-Wl,-v` on SunOS because not all GNU deployments use the `collect2` helper, and those that do do not always print the underlying `ld` command line. Parse the `--with-ld=` option as a fallback.
| * | | | LinkerId: Fix detection of linker tool for XL compilersBrad King2024-01-031-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | These compilers print an explicit `export XL_LINKER=` line. Parse it separately.
| * | | | LinkerId: Fix detection of linker tool for XL as nvcc host compilerBrad King2024-01-031-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When IBM XL is used as the host compiler for nvcc, it generates a comma-separated link line. Parse the `exec:` line syntax separately, as was done in commit b5f20da94d (CMakeParseImplicitLinkInfo supports comma separated link lines, 2019-08-23, v3.16.0-rc1~181^2).
| * | | | LinkerId: Prepare detection of linker tool for multiple match attemptsBrad King2024-01-031-8/+12
| | | | |
* | | | | Merge topic 'revert-ExternalProject-download-byproducts'Brad King2024-01-041-9/+5
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | fd3c9876c6 ExternalProject: revert `BYPRODUCTS` for download outputs Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9097
| * | | | ExternalProject: revert `BYPRODUCTS` for download outputsBen Boeckel2024-01-031-9/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xcode has been reported to not work at all with this when ExternalProject projects share download files. Revert commit 872daff159 (ExternalProject: declare byproducts for the download step, 2023-09-21, v3.28.0-rc1~27^2) pending further investigation. Fixes: #25525
* | | | | Merge topic 'fix-redirect-links'Craig Scott2024-01-011-1/+1
|\ \ \ \ \ | | |_|/ / | |/| | / | |_|_|/ |/| | | | | | | | | | | 5a7927d028 Help: update lua.org links to be HTTPS Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !9114
| * | | Help: update lua.org links to be HTTPSBen Boeckel2024-01-011-1/+1
| |/ / | | | | | | | | | This is now a permanent redirect, so update links accordingly.
* | | Merge topic 'package-dispatch-apple'Brad King2023-12-202-4/+152
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 4ac5a2f866 CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file() b9f81ee9f9 CMakePackageConfigHelpers: Remove outdated documentation summary paragraph 68a03cf3d4 generate_apple_platform_selection_file: Add INSTALL_PREFIX option ff21f0f70f Tests: Verify generate_apple_platform_selection_file file paths Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: buildbot <buildbot@kitware.com> Merge-request: !9092
| * | | CMakePackageConfigHelpers: Add generate_apple_architecture_selection_file()Brad King2023-12-192-0/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Add a helper to select architecture-specific implementations of a package on an Apple-specific platform. Fixes: #25516
| * | | CMakePackageConfigHelpers: Remove outdated documentation summary paragraphBrad King2023-12-191-3/+0
| | | |