Commit Graph

63793 Commits

Author SHA1 Message Date
Marc Chevrier
342b1b8a69 UseSWIG: ensure generated CSharp source code is portable.
Fixes: #25405
2023-11-14 17:10:03 +01:00
Kitware Robot
32342fa728 CMake Nightly Date Stamp 2023-11-14 00:01:07 -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
scivision
ae72b04418 Help: Document when <LANG>_COMPILER_ID genex learned to support multiple ids
It was added in CMake 3.15.
2023-11-07 13:47:43 -05:00
Robert Maynard
d7642a7d42 CUDA: Support CMAKE_TRY_COMPILE_TARGET_TYPE of STATIC_LIBRARY 2023-11-07 10:48:32 -05:00
Brad King
1b91d6046a Merge branch 'release-3.28' 2023-11-07 09:56:25 -05:00
Brad King
49df33c342 Merge topic 'static-library-link-xcframework'
7d19246138 Xcode: Fix linking against .xcframework from static libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8949
2023-11-07 09:56:25 -05:00
Brad King
4f26c238a6 Merge topic 'static-library-link-xcframework' into release-3.28
7d19246138 Xcode: Fix linking against .xcframework from static libraries

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8949
2023-11-07 09:56:24 -05:00
Brad King
a0fabc4769 cmGlobalGeneratorFactory: Provide complete cmGlobalGenerator to deleter
The libc++ `unique_ptr` implementation requires this since C++23.

Fixes: #25388
2023-11-07 09:13:25 -05:00
Brad King
85627a93c9 cmCTestBuildCommand: Avoid requiring complete cmGlobalGenerator type publicly 2023-11-07 09:13:25 -05:00
Brad King
641c02a3ce cmList: Avoid using operator-> on input iterator
As of C++23, some standard library iterator types deprecate it.
2023-11-07 09:13:25 -05:00
Brad King
e4483b8871 Tests: Avoid compiling call to dap::optional<dap::string>(nullptr) 2023-11-07 09:13:24 -05:00
Brad King
5afd411ed0 Merge topic 'vs-CharacterSet'
cbddc66277 VS: Consider macros with values when determining CharacterSet

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8940
2023-11-07 09:10:00 -05:00
Brad King
8872da0fe4 Merge topic 'CMakeDetermineFortranCompiler-typo'
e82a8ab197 CMakeDetermineFortranCompiler: Fix typo in comment (CC -> FC)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8945
2023-11-07 09:08:33 -05:00
Brad King
92cc1f3b62 Merge topic 'Ninja-use-depslog'
bb7a0497ef cmTransformDepfile: warn when a depfile is not written to
c22c473bde Tests/Ninja*/CustomCommandDepfile: check that deps are in the database
b0177003e1 cmGlobalNinjaGenerator: tell `ninja` to actually read the depfile
45eff9145e cmAddCustomCommandCommand: use `cmStrCat`
c6445c615b Tests/RunCMake/Ninja: fix subdir prefix check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8911
2023-11-07 09:07:46 -05:00
Brad King
4b92515182 Merge topic 'ci-linkcheck'
d865d5bce1 ci: Do not linkcheck www.intel.com URLs

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8948
2023-11-07 08:40:06 -05:00
Kitware Robot
4c52349b9e CMake Nightly Date Stamp 2023-11-07 00:01:10 -05:00
scivision
7b4983536a Help:test prop WILL_FAIL clarify and example
This makes the WILL_FAIL behavior explicit. Users could be confused
because some other build systems treat equivalent test properties
as allowing a failure, but still pass on a passing test, and may
catch SIGABRT unlike CMake.

We show an example of how to wrap a test so that sigabrt, segfault,
etc. are also handled by WILL_FAIL.
2023-11-06 21:46:17 -05:00
Deniz Bahadir
cbddc66277 VS: Consider macros with values when determining CharacterSet
In order to determine what character-set (Unicode, Multi-Byte, none)
shall be set in the generated `*.vcxproj` files, CMake checks if one of
the macros `_UNICODE` or `_SBCS` are defined.
However, as these macros can be defined with or without a value, the
check should always recognize these macros whether they are defined with
a value or without. That is now assured by this commit.

Fixes: #25379
2023-11-06 23:41:23 +01:00
Kyle Edwards
7d19246138 Xcode: Fix linking against .xcframework from static libraries
Issue: #21752
2023-11-06 17:40:00 -05:00
Brad King
d865d5bce1 ci: Do not linkcheck www.intel.com URLs
They fail with a 403 Client Error, perhaps due to our once-per-day
request being classified as scraping.
2023-11-06 12:53:35 -05:00
Brad King
dea37a4e7d Merge branch 'release-3.28' 2023-11-06 12:18:51 -05:00
Brad King
ed154b3896 CMake 3.28.0-rc4 v3.28.0-rc4 2023-11-06 11:50:13 -05:00