Commit Graph

63813 Commits

Author SHA1 Message Date
Brad King f22ecbacb6 Merge topic 'export-find_dependency-calls'
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
2023-11-14 09:22:13 -05:00
Brad King 9b36209698 Merge topic 'FindBLAS-LAPACK-OpenBLAS-mingw'
6ce94ae0b7 Find{BLAS,LAPACK}: Fix OpenBLAS ILP64 support with MSYS2 packages

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8968
2023-11-14 09:10:24 -05:00
Brad King 380b324103 Merge topic 'sources-per-config'
16c5977504 Fix per-config sources in multi-config generators when first config adds none

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8971
2023-11-14 09:09:15 -05:00
Brad King 8743ec0270 Merge branch 'release-3.28' 2023-11-14 09:07:11 -05:00
Brad King 7b2f771077 Merge topic 'genex-fix-short-circuit'
27244a8f73 cmGeneratorExpressionNode: Fix short-circuit logic

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8966
2023-11-14 09:07:11 -05:00
Brad King baec1dac9b Merge topic 'genex-fix-short-circuit' into release-3.28
27244a8f73 cmGeneratorExpressionNode: Fix short-circuit logic

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8966
2023-11-14 09:07:10 -05:00
Brad King 120d6b81f0 Merge branch 'release-3.28' 2023-11-14 09:05:53 -05:00
Brad King 0d467a92da Merge branch 'release-3.27' 2023-11-14 09:05:51 -05:00
Brad King c7c59a2862 Merge branch 'release-3.27' into release-3.28 2023-11-14 09:05:43 -05:00
Brad King 5743e9cdfb Merge branch 'release-3.28' 2023-11-14 09:04:55 -05:00
Brad King a440c65129 Merge topic 'FindOpenMP-5.1-and-5.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
2023-11-14 09:04:55 -05:00
Brad King 339cd47732 Merge topic 'FindOpenMP-5.1-and-5.2' into release-3.28
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
2023-11-14 09:04:53 -05:00
Kitware Robot 32342fa728 CMake Nightly Date Stamp 2023-11-14 00:01:07 -05:00
Brad King 16c5977504 Fix per-config sources in multi-config generators when first config adds none
Since commit b1c3ae33ea (cmTarget: Short-circuit language computation if
context independent., 2014-04-09, v3.1.0-rc1~669^2~1) we've tried to
avoid repeating computation of the list of sources for a target for
every configuration in the case that a per-config source (or object
library) contributes zero sources.  However, it is possible that an
entry contributes zero sources in the first configuration processed but
at least one source in other configurations.

Fixes: #25400
2023-11-13 14:00:12 -05:00
Brad King 8e90b95e67 Merge branch 'FindOpenMP-5.1-and-5.2' into release-3.27
Merge-request: !8965
2023-11-13 11:17:25 -05:00
Martin Duffy 27244a8f73 cmGeneratorExpressionNode: Fix short-circuit logic
Fix logic added by commit 634079b86d (cmGeneratorExpressionEvaluator:
Short-circuit boolean operators, 2023-09-11, v3.28.0-rc1~47^2) and
add missing test cases.

Fixes: #25412
2023-11-13 11:11:18 -05:00
Kyle Edwards 0ad8fc5a63 FetchContent: Set CMAKE_EXPORT_FIND_PACKAGE_NAME 2023-11-13 11:07:53 -05:00
Kyle Edwards c6e6861e63 install(EXPORT): Export find_dependency() calls
Issue: #20511
Co-Authored-by: Brad King <brad.king@kitware.com>
Co-Authored-by: Robert Maynard <rmaynard@nvidia.com>
2023-11-13 11:07:52 -05:00
Kyle Edwards 2837f592ab cmExportFileGenerator: Add function to set required CMake version 2023-11-13 11:07:52 -05:00
Kyle Edwards e62a3b8625 Help/export: Add signature directives 2023-11-13 11:07:52 -05:00
Christoph Reiter 2859be7575 FindOpenMP: Add support for openmp 5.1 (llvm 17) and 5.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.
2023-11-13 10:51:40 -05:00
Martin Köhler 6ce94ae0b7 Find{BLAS,LAPACK}: Fix OpenBLAS ILP64 support with MSYS2 packages
Typically, ILP64 BLAS libraries are suffixed with `64`, but the MSYS2
package provides the ILP64 version of OpenBLAS with a `_64` suffix.
2023-11-13 09:58:26 -05:00
Brad King 5e79703f93 Merge topic 'make-test-depend-on-all'
5e0c1777a3 Optionally make `test` target depend on `all`
eaa00d4dfa Tests: Add case to verify that 'make test' does not 'make all'

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Jason Juang <jasjuang@gmail.com>
Merge-request: !8956
2023-11-13 09:53:04 -05:00
Brad King af2fb376a4 Merge topic 'link-deduplicate-libs'
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
2023-11-13 09:51:51 -05:00
Brad King 5bad0caea0 Merge topic 'ci-html-docs'
7073a6d278 ci/sphinx: Add html output as artifacts

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8960
2023-11-13 09:42:23 -05:00
Kitware Robot 1af14eda2d CMake Nightly Date Stamp 2023-11-13 00:01:29 -05:00
Kitware Robot a0f7d3b864 CMake Nightly Date Stamp 2023-11-12 00:01:09 -05:00
Kitware Robot 33d372ceca CMake Nightly Date Stamp 2023-11-11 00:01:07 -05:00
William Sciaroni 5e0c1777a3 Optionally make test target depend on all
Fixes: #8774
2023-11-10 13:19:11 -05:00
Brad King eaa00d4dfa Tests: Add case to verify that 'make test' does not 'make all'
Place it in a new `RunCMake.BuiltinTargets` umbrella test meant to cover
behavior of targets builtin to CMake.
2023-11-10 13:19:08 -05:00
Brad King 7e8b689532 Merge topic 'ctest-remove-binary-dir-error'
07edab8ef2 ctest_empty_binary_directory: Report more detail in failure message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !8959
2023-11-10 09:58:25 -05:00
Brad King f421f02c10 Merge topic 'cmtargetexport-iwyu'
c2974463d7 cmTargetExport: Analyze with IWYU

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8961
2023-11-10 09:57:36 -05:00
Kitware Robot c09232c27d CMake Nightly Date Stamp 2023-11-10 00:01:08 -05:00
Marc Chevrier 7b99c42e57 Link step: Enable to configure deduplication of libraries
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
2023-11-09 19:20:40 +01:00
Kyle Edwards c2974463d7 cmTargetExport: Analyze with IWYU
Since there is no cmTargetExport.cxx, cmTargetExport.h was not
being analyzed by IWYU. Associate cmTargetExport.h with
cmExportSet.cxx.
2023-11-09 10:49:50 -05:00
Kyle Edwards 7073a6d278 ci/sphinx: Add html output as artifacts 2023-11-09 09:55:22 -05:00
Brad King ce34ff9860 Merge branch 'release-3.28' 2023-11-09 09:25:28 -05:00
Brad King 2f370f69f3 Merge topic 'find_cudatoolkit_cufile_name'
b38a8e77cb FindCUDAToolkit: Search for cufile library name being lowercase

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8955
2023-11-09 09:25:27 -05:00
Brad King d36d2b9253 Merge topic 'find_cudatoolkit_cufile_name' into release-3.28
b38a8e77cb FindCUDAToolkit: Search for cufile library name being lowercase

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8955
2023-11-09 09:25:26 -05:00
Brad King 07edab8ef2 ctest_empty_binary_directory: Report more detail in failure message 2023-11-09 09:11:55 -05:00
Kitware Robot 1cd9ebe4a6 CMake Nightly Date Stamp 2023-11-09 00:01:09 -05:00
Marc Chevrier 07501c1678 Link Step: Introduce EntriesProcessing class
This refactoring is done in preparation of the possibility to configure
the deduplication of the libraries as well as the order on the link command.
2023-11-08 17:06:19 +01:00
Robert Maynard b38a8e77cb FindCUDAToolkit: Search for cufile library name being lowercase
Fixes #25398
2023-11-08 10:43:30 -05:00
Brad King d6b796854b Merge topic 'doct'
7b4983536a Help:test prop WILL_FAIL clarify and example

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8937
2023-11-08 10:39:02 -05:00
Brad King 70b6a9ea5c Merge topic 'cuda_support_CMAKE_TRY_COMPILE_TARGET_TYPE'
d7642a7d42 CUDA: Support CMAKE_TRY_COMPILE_TARGET_TYPE of STATIC_LIBRARY

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8953
2023-11-08 10:34:58 -05:00
Brad King 31a4d82def Merge topic 'doc-genex-compiler-ids'
ae72b04418 Help: Document when <LANG>_COMPILER_ID genex learned to support multiple ids

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8952
2023-11-08 10:33:46 -05:00
Brad King 5eb3570a77 Merge branch 'release-3.28' 2023-11-08 10:32:04 -05:00
Brad King 85a9fe056f Merge topic 'cxx23'
a0fabc4769 cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter
85627a93c9 cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly
641c02a3ce cmList: Avoid using operator-> on input iterator
e4483b8871 Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !8950
2023-11-08 10:32:04 -05:00
Brad King 56544c1874 Merge topic 'cxx23' into release-3.28
a0fabc4769 cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter
85627a93c9 cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly
641c02a3ce cmList: Avoid using operator-> on input iterator
e4483b8871 Tests: Avoid compiling call to dap::optional<dap::string>(nullptr)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !8950
2023-11-08 10:32:03 -05:00
Kitware Robot 7ebafbd065 CMake Nightly Date Stamp 2023-11-08 00:01:08 -05:00