summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Merge topic 'fix-nvpl' into release-4.2Brad King2025-12-112-2/+2
|\ | | | | | | | | | | | | | | 1bf46814c4 FindBLAS: Make find_package(nvpl) quiet Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !11498
| * FindBLAS: Make find_package(nvpl) quietVito Gamberini2025-12-102-2/+2
| | | | | | | | Fixes: #27451
| * Merge topic 'flang-j-as-moddir' into release-4.1Brad King2025-11-251-1/+1
| |\ | | | | | | | | | | | | | | | | | | db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11443
* | \ Merge topic 'emscripten-arch-id' into release-4.2Brad King2025-11-264-0/+16
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 5ec87b2ba7 Emscripten: Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11452
| * | | Emscripten: Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_IDBrad King2025-11-254-0/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16, v4.2.0-rc1~607^2~3) to account for commit 7f0f382c55 (Provide CMAKE_<LANG>_COMPILER_ARCHITECTURE_ID on more compilers, 2025-03-24, v4.1.0-rc1~499^2). Fixes: #27425
* | | | Merge topic 'emscripten-fPIC' into release-4.2Brad King2025-11-261-2/+0
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 86574083a8 Emscripten: Drop hard-coded -fPIC flag Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Sam Clegg <sbc@chromium.org> Merge-request: !11448
| * | | | Emscripten: Drop hard-coded -fPIC flagBrad King2025-11-251-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16, v4.2.0-rc1~607^2~3) this flag was added as part of an attempt to support shared libraries without requiring projects to set much themselves. That attempt was reverted by commit d361bf365e (Emscripten: Drop hard-coded -sMAIN_MODULE and -sSIDE_MODULE flags, 2025-09-18, v4.2.0-rc1~146^2). Also avoid hard-coding `-fPIC`. `POSITION_INDEPENDENT_CODE` is already enabled for shared library targets. Projects can enable it themselves where `-fPIC` is needed outside of shared libraries. Fixes: #27424 Issue: #27240
* | | | | Merge topic 'ExternalProject-env-mod' into release-4.2Brad King2025-11-261-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | | | | | | | | | | | | | | | | | | | | | | 8afe5f227c ExternalProject: Fix environment modification ops named with underscores Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11442
| * | | | ExternalProject: Fix environment modification ops named with underscoresBrad King2025-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend commit e301cbffcc (ExternalProject: Set environment variables, 2025-04-09, v4.2.0-rc1~480^2) and commit 9cb590b843 (ExternalProject: Fix lists and empty commands with environment modification, 2025-09-11, v4.2.0-rc1~9^2) to match `_` in environment modification operation names. Fixes: #27409
* | | | | Merge topic 'flang-j-as-moddir' into release-4.2Brad King2025-11-251-1/+1
|\ \ \ \ \ | |_|/ / / |/| | | / | | |_|/ | |/| | | | | | | | | | | | | | db6b82ae54 LLVMFlang-Fortran: Use -J instead of -module-dir Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: scivision <michael@scivision.dev> Merge-request: !11443
| * | | LLVMFlang-Fortran: Use -J instead of -module-dirTarun Prabhu2025-11-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In flang, both -J and -module-dir support both joined and separate values. For the -J option, these are of the form `-J<value>` and `-J <value>` respectively. Once https://github.com/llvm/llvm-project/pull/168748 is committed, -module-dir will only work with a separate value. Setting CMAKE_Fortran_MODDIR_FLAG to -J ensures that both joined and separate styles will continue to work after that change is made. As far as behavior is concerned, both -J and -module-dir are aliases.
| * | | CPack: Backport "correctly perform querytags on old versions of RPM"Brad King2025-11-101-0/+10
| | | | | | | | | | | | | | | | | | | | Backport commit 488de6294a (CPack: correctly perform querytags on old versions of RPM, 2025-01-09, v4.0.0-rc1~182^2~3) to CMake 3.31.
| * | | CPack/RPM: Backport "Fix detection of RPM support for weak dependencies"Brad King2025-11-101-10/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport commit 283a48403f (CPack/RPM: Fix detection of RPM support for weak dependencies, 2025-02-28, v4.0.0-rc3~8^2) to CMake 3.31. Fixes: #27373
| * | | CPack/RPM: Backport "Remove redundant conditions for presence of rpmbuild"Brad King2025-11-101-50/+31
| | | | | | | | | | | | | | | | | | | | Backport commit ab4e74ad0b (CPack/RPM: Remove redundant conditions for presence of rpmbuild, 2025-02-28, v4.0.0-rc3~8^2~1) to CMake 3.31.
* | | | Emscripten: Restore placement of source files on compile command-linesBrad King2025-11-241-1/+1
| |/ / |/| | | | | | | | | | | | | | | | | | | | Since commit 96d9b94a98 (Emscripten: Add platform modules, 2025-05-16, v4.2.0-rc1~607^2~3), compilation command-lines for Emscripten place `-c <SOURCE>` before all the flags. Restore the original order. Fixes: #27404
* | | VS/Android: Use ApplicationTypeRevision 3.0 in VS2026Brad King2025-11-202-2/+2
| | | | | | | | | | | | | | | | | | | | | Extend commit e78abf94e3 (VS/Android: Use ApplicationTypeRevision 3.0 in VS2022, 2023-04-21, v3.27.0-rc1~165^2~4) to cover VS 2026 too. This was missed in commit 3392b371e2 (VS: Add Visual Studio 18 2026 generator, 2025-08-20, v4.2.0-rc1~165^2~1).
* | | Help: Fix typos and formatting for 4.2 releaseCraig Scott2025-11-141-1/+1
| | |
* | | FindPostgreSQL: Add support for version 17Brad King2025-11-121-0/+2
| | |
* | | FindImageMagick: Fix detection of version 7 from headersBrad King2025-11-121-15/+21
| | |
* | | FindJNI: Add Debian/Ubuntu specific paths for more recent JDK versionsBrad King2025-11-121-0/+5
| | |
* | | GoogleTest: Avoid POST_BUILD race condition for gtest_discover_tests()Brad King2025-11-061-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | Fix commit 6680df042e (GoogleTest: Avoid POST_BUILD race condition for gtest_discover_tests(), 2025-10-26, v4.2.0-rc2~15^2) to actually hash the target name instead of an empty string. Fixes: #27319
* | | pre-commit: version bump `typos` hook plus fix found typosAlex Turbov2025-10-302-5/+5
| | | | | | | | | | | | | | | Backport commit 8de02a14c8 (ci(pre-commit): version bump `typos` hook plus fix found typos, 2025-10-23) to the CMake 4.2 release branch.
* | | macOS: Do not incorrectly search for per-arch SDKsBrad King2025-10-291-1/+1
| | | | | | | | | | | | | | | | | | | | | Extend commit a9b41195d2 (Handle multi-arch sysroots on Apple platforms, 2019-07-26, v3.17.0-rc1~287^2) to recognize versioned macOS SDK names. Fixes: #27340
* | | Merge topic 'python_debug_postifx_no_interpreter' into release-4.2Brad King2025-10-281-4/+7
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6a35c277d0 FindPython: Support getting DEBUG_POSTFIX without requiring Interpreter 43fec72adb Tests: Fix RunCMake.UseSWIG SetPOSTFIX case on Windows Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11345
| * | | FindPython: Support getting DEBUG_POSTFIX without requiring InterpreterAndrej7302025-10-271-4/+7
| | | |
* | | | Merge topic 'gtest-discovery-race-condition' into release-4.2Brad King2025-10-271-1/+11
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 6680df042e GoogleTest: Avoid POST_BUILD race condition for gtest_discover_tests() Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11357
| * | | | GoogleTest: Avoid POST_BUILD race condition for gtest_discover_tests()Craig Scott2025-10-261-1/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If multiple calls to `gtest_discover_tests()` are made with different targets and they use the same working directory, they would previously have tried to use the same `cmake_test_discovery.json` file for collecting the set of tests during discovery. Incorporate a hash of the target name into the file name to ensure that no longer occurs. Fixes: #27319
* | | | | Merge topic 'xcode-macos-deployment-target' into release-4.2Brad King2025-10-271-15/+45
|\ \ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | de53a46a91 Help: Add 4.1 release note for restored Xcode default deployment target 85ba6f5d1b Merge branch 'backport-4.0-xcode-macos-deployment-target' 884260ced6 Help: Add 4.0 release note for restored Xcode default deployment target 1a37c83c7e Xcode: Restore default CMAKE_OSX_DEPLOYMENT_TARGET to run on host e927408047 Apple: Initialize deployment target after SDK Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11361
| * | | | Merge branch 'backport-4.0-xcode-macos-deployment-target'Brad King2025-10-261-15/+45
| |\ \ \ \
| | * | | | Xcode: Restore default CMAKE_OSX_DEPLOYMENT_TARGET to run on hostBrad King2025-10-261-3/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Xcode by default targets the SDK's macOS version rather than the host's macOS version. In commit 7b19531291 (macOS: Do not pass any SDK/-isysroot to compilers by default, 2024-11-06, v4.0.0-rc1~511^2) we reverted commit 24aafbde11 (Xcode: Adjust deployment target SDK version to host version, 2015-10-11, v3.4.0-rc2~6^2), but it is still needed for Xcode. Restore the behavior so binaries run on the host by default. Fixes: #27309
| | * | | | Apple: Initialize deployment target after SDKBrad King2025-10-261-15/+15
| | | | | |
| | * | | | Merge topic 'FindPython-3.15' into release-4.0Brad King2025-10-253-3/+3
| | |\ \ \ \ | | | | |_|/ | | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f628ea04b FindPython: Add support for Python 3.15 5b78983813 Tests/FindBoost/TestPython: Improve python version list formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11350
| | * | | | macOS: Avoid relying on sw_vers when cross-compiling from another OSBrad King2025-10-222-12/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have a few code paths needed only to support builds hosted on macOS 10.4. Update the conditions to work when cross-compiling to macOS from another platform. This backports commit eb8facd396 (macOS: Avoid relying on sw_vers when cross-compiling from another OS, 2025-04-28, v4.1.0-rc1~260^2) to CMake 4.0. Fixes: #26814
| | * | | | macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGETBrad King2025-10-221-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Revert commit 2853326e7a (BUG: Only set CMAKE_OSX_DEPLOYMENT_TARGET on Mac OSX 10.4 or later, 2009-01-27, v2.8.0~1169). AFAIK no one is using macOS versions older than 10.4 anymore. This backports commit 476b2a386f (macOS: Remove outdated condition for CMAKE_OSX_DEPLOYMENT_TARGET, 2025-04-28, v4.1.0-rc1~260^2~1) to CMake 4.0.
| | * | | | Merge topic 'clang_cuda_support_cuda_13' into release-4.0Brad King2025-08-151-4/+10
| | |\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 67c102ef64 Clang/CUDA: Support CUDA Toolkit 13 new include layout Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11079
| | * \ \ \ \ Merge topic 'cuda_13_support' into release-4.0Brad King2025-08-051-68/+77
| | |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 3ff777de12 CUDA: Update CUDA tests to handle CUDA 13 deprecations bbf732525a CUDA: Add CUDA 13.0 support to 'all' and 'all-major' architecture tables Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11015
| | * \ \ \ \ \ Merge topic 'cuda_ensure_arch_order' into release-4.0Brad King2025-08-051-2/+3
| | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 8beb309b79 CUDA: Make sure CUDA architectures are in order Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11014
| | * \ \ \ \ \ \ Merge topic 'qcc-8-cxx-lang-flag' into release-4.0Brad King2025-08-051-3/+11
| | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 166061629a QCC-CXX: use `-x c++` on 8+ Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10992
| | * \ \ \ \ \ \ \ Merge topic 'backport-determine-abi-fix' into release-4.0Brad King2025-07-281-1/+7
| | |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 41fbc2ce16 CMakeDetermineCompilerABI: Make ABI info string more robust Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !10973
| * | \ \ \ \ \ \ \ \ Merge topic 'FindPython-3.15' into release-4.1Brad King2025-10-253-3/+3
| |\ \ \ \ \ \ \ \ \ \ | | | |_|_|_|_|_|/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f628ea04b FindPython: Add support for Python 3.15 5b78983813 Tests/FindBoost/TestPython: Improve python version list formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11350
* | | | | | | | | | | Merge topic 'fbuild_cuda' into release-4.2Brad King2025-10-261-2/+8
|\ \ \ \ \ \ \ \ \ \ \ | |_|_|_|_|_|_|_|_|/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2cfae5e140 ci: Add job for CUDA with FASTBuild generator on Linux 4135175337 FASTBuild: support CUDA language Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !11324
| * | | | | | | | | | FASTBuild: support CUDA languageEduard Voronkin2025-10-251-2/+8
| | |_|_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes: #27318
* | | | | | | | | | Merge topic 'FindPython-3.15' into release-4.2Brad King2025-10-253-3/+3
|\ \ \ \ \ \ \ \ \ \ | | |_|/ / / / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 7f628ea04b FindPython: Add support for Python 3.15 5b78983813 Tests/FindBoost/TestPython: Improve python version list formatting Acked-by: Kitware Robot <kwrobot@kitware.com> Acked-by: Andrej <azhilenkov@gmail.com> Merge-request: !11350
| * | | | | | | | | FindPython: Add support for Python 3.15Karolina Surma2025-10-243-3/+3
| | | | | | | | | |
| * | | | | | | | | Apple: Backport "Enable linking during iOS toolchain inspection" to 3.31Brad King2025-10-214-8/+0
| | |_|_|_|_|_|_|/ | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Backport commit 79a83ddb08 (Apple: Enable linking during iOS/tvOS/visionOS/watchOS toolchain inspection, 2024-11-14, v4.0.0-rc1~471^2) to 3.31. Since commit 11da882a12 (Apple: Introduce separate system name for iOS, tvOS, and watchOS, 2018-01-15, v3.14.0-rc1~14^2~1) our toolchain inspection steps, like ABI detection, tell `try_compile` to use a `STATIC_LIBRARY` instead of an `EXECUTABLE`. This was needed at the time to avoid codesign requirements. However, commit d3a64c4e3f (Xcode: Explicitly turn off signing in try_compile projects, 2020-07-16, v3.19.0-rc1~483^2) introduced a more general solution to that problem. Restore linking during toolchain inspection so that we can detect and identify the linker. Suggested-by: Marc Chevrier <marc.chevrier@gmail.com> Fixes: #26443
* | | | | | | | | UseSWIG: Issue `swig_link_libraries` deprecation warning if CMP0078 is NEWAndrej7302025-10-241-0/+4
| |/ / / / / / / |/| | | | | | |
* | | | | | | | Merge topic 'gtest-json-discovery-empty' into release-4.2Brad King2025-10-221-39/+37
|\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | f67efb64ab GoogleTest: Restore support for empty discovered test list Acked-by: Kitware Robot <kwrobot@kitware.com> Tested-by: buildbot <buildbot@kitware.com> Merge-request: !11326
| * | | | | | | | GoogleTest: Restore support for empty discovered test listOttmar Zittlau2025-10-211-39/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since commit 1cdceae8e3 (GoogleTest: Parse discovered test list from JSON output if supported, 2025-05-02, v4.2.0-rc1~533^2~2) we've incorrectly tried to `return()` from a `macro()` when no tests are available. This led to the situation that a file that contains the test details was not properly overwritten but still indicated that the test target was not built. Fixes: #27319
* | | | | | | | | Linker: Tolerate CMAKE_EXECUTE_PROCESS_COMMAND_ERROR_IS_FATAL set to ANYTristan Daifuku2025-10-202-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Tolerate expected failures of linkers invoked via `execute_process`.
* | | | | | | | | Compilers: Use -print-sysroot output only with successful exit codeBrad King2025-10-201-2/+6
|/ / / / / / / /