Commit Graph

63776 Commits

Author SHA1 Message Date
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 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
Kitware Robot 1cd9ebe4a6 CMake Nightly Date Stamp 2023-11-09 00:01:09 -05: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
Sylwester Arabas e82a8ab197 CMakeDetermineFortranCompiler: Fix typo in comment (CC -> FC) 2023-11-06 10:57:26 -05:00
Brad King 530deed998 Merge topic 'cmake-E-cat-stdin'
ab72846794 cmake -E cat: Add ability to print standard input

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8942
2023-11-06 10:35:45 -05:00
Kitware Robot a3e67a60de CMake Nightly Date Stamp 2023-11-06 00:01:38 -05:00
Craig Scott 768690ee9a Merge topic 'FetchContent-GHS'
6a81104413 FetchContent: Pass GHS Variables to subbuild

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8930
2023-11-05 18:47:52 -05:00
Kitware Robot 51d985da3e CMake Nightly Date Stamp 2023-11-05 00:01:07 -04:00
William Sciaroni 6a81104413 FetchContent: Pass GHS Variables to subbuild
Fixes: #24244
2023-11-05 08:42:27 +11:00
Kitware Robot 3a467f0f8e CMake Nightly Date Stamp 2023-11-04 00:01:08 -04:00
Brad King 8a7500a438 Merge topic 'CMakeFindPackageMode-link-docs'
c5388bd320 CMakeFindPackageMode: Link to cmake --find-package documentation

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8943
2023-11-03 10:52:53 -04:00
Brad King d11757fb33 Merge branch 'release-3.28' 2023-11-03 10:38:49 -04:00
Brad King e07ad5ee9c Merge topic 'cdash-report-urls'
06661b1e4c gitlab-ci: pull annotations for CDash from the jobs
a518e402c5 ci: generate annotation reports

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8939
2023-11-03 10:38:48 -04:00
Brad King 1e7489e3ac Merge topic 'cdash-report-urls' into release-3.28
06661b1e4c gitlab-ci: pull annotations for CDash from the jobs
a518e402c5 ci: generate annotation reports

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8939
2023-11-03 10:38:47 -04:00
Kyle Edwards a7276f3c29 Merge branch 'release-3.28' 2023-11-03 10:28:36 -04:00
Kyle Edwards cee364e77f Merge topic 'cmsystemtools-runsinglecommand-stdin'
c4be9c914b cmSystemTools::RunSingleCommand(): Pass stdin to child process

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8941
2023-11-03 10:28:36 -04:00
Kyle Edwards 86ae23b6f3 Merge topic 'cmsystemtools-runsinglecommand-stdin' into release-3.28
c4be9c914b cmSystemTools::RunSingleCommand(): Pass stdin to child process

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8941
2023-11-03 10:28:35 -04:00
權少 c5388bd320 CMakeFindPackageMode: Link to cmake --find-package documentation 2023-11-03 10:17:38 -04:00
Kyle Edwards ab72846794 cmake -E cat: Add ability to print standard input 2023-11-03 09:03:25 -04:00
Kitware Robot 6b28b1b933 CMake Nightly Date Stamp 2023-11-03 00:01:09 -04:00