Commit Graph

33790 Commits

Author SHA1 Message Date
Brad King 2e8e5c2cf0 Merge topic 'Xcode-frameworks-consumption'
ce1bdec3a4 Xcode: Fix missing Frameworks search paths

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8288
2023-03-07 08:48:40 -05:00
Kitware Robot 3b80d2870f CMake Nightly Date Stamp 2023-03-07 00:01:17 -05:00
Marc Chevrier ce1bdec3a4 Xcode: Fix missing Frameworks search paths
Fixes: #24541
2023-03-06 09:15:48 -05:00
Brad King 6b08358e17 Merge topic 'Apple-text-Stubs-imported-configurations'
2e24123186 Apple: text-based stubs: manage imported configurations mapping

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8283
2023-03-06 09:03:48 -05:00
Kitware Robot e4b1ac6282 CMake Nightly Date Stamp 2023-03-06 00:01:23 -05:00
Marc Chevrier 2e24123186 Apple: text-based stubs: manage imported configurations mapping 2023-03-05 14:39:56 +01:00
Kitware Robot 20e3884e9e CMake Nightly Date Stamp 2023-03-05 00:01:10 -05:00
Kitware Robot eb7512e082 CMake Nightly Date Stamp 2023-03-04 00:01:19 -05:00
Brad King 0a9945cb8d Merge topic 'DxxxxWarnings'
442170a5e7 cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8277
2023-03-03 09:28:10 -05:00
Brad King 77cf8d24ab Merge topic 'update-kwsys'
1caf5cbd6a Merge branch 'upstream-KWSys' into update-kwsys
5433eea1a9 KWSys 2023-03-02 (ea806689)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8278
2023-03-03 09:27:28 -05:00
Brad King 87330a10e2 Merge topic 'ninja-multi-output-path-prefix'
df38eaab2c Ninja Multi-Config: Write output path prefix

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8280
2023-03-03 09:18:34 -05:00
Kitware Robot c465e0e3bb CMake Nightly Date Stamp 2023-03-03 00:01:12 -05:00
Kyle Edwards def618f1ae Merge topic 'TargetRunTimeDllDirs'
a2c9c4f202 Add test for the new TARGET_RUNTIME_DLL_PATHS genex
aa68de0a27 TARGET_RUNTIME_DLLS: minor refactoring of shared-check.cmake
2ce3d62ffb Help: add documentation for the new TARGET_RUNTIME_DLL_DIRS genex
c351dcd967 TARGET_RUNTIME_DLL_DIRS: add the new genex to cmGeneratorExpressionNode
064c3244da TARGET_RUNTIME_DLLS: fix test for this genex

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Alex <leha-bot@yandex.ru>
Merge-request: !8247
2023-03-02 16:28:30 -05:00
Kyle Edwards df38eaab2c Ninja Multi-Config: Write output path prefix
Fixes: #24566
2023-03-02 15:10:53 -05:00
Brad King 1caf5cbd6a Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2023-03-02 (ea806689)
2023-03-02 11:11:12 -05:00
Roffild 442170a5e7 cm_cxx_features: Ignore MSVC command-line warnings (Dxxxx)
The Dxxxx warning range is for command-line warnings [1].  These are
incidental and should not affect the result of the feature check.

[1] https://learn.microsoft.com/en-us/cpp/error-messages/tool-errors/command-line-errors-d8000-through-d9999
2023-03-02 10:25:16 -05:00
Brad King 5fe186ade7 Merge topic 'target_sources-backtrace'
b909be9e23 target_sources: Fix backtrace on missing source
4a3e79048b Tests: Add RunCMake.target_sources case covering missing source

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !8268
2023-03-02 10:07:31 -05:00
Brad King 48c2a146ae Merge topic 'clean-AddCacheEntry'
87c4eba5cb cmState::AddCacheEntry(): Remove unused overloads

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8269
2023-03-02 09:54:59 -05:00
Brad King f9888e5f51 Merge topic 'dont_use_bom_with_cuda'
c5305cf493 Makefile: Don't pass the CUDA compiler response files with UTF8_BOM

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Ivan Katalenić <ivankatalenic100@gmail.com>
Merge-request: !8267
2023-03-02 09:54:03 -05:00
Brad King 1d7fb31778 Merge topic 'Apple-handle-Text-Stubs'
ede33f30cf Apple: Handle generation and comsuption of text-based stubs (.tbd files)
fcbd723a50 Enhance support functions

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Brad King <brad.king@kitware.com>
Merge-request: !8204
2023-03-02 09:53:03 -05:00
Kitware Robot b32949d47e CMake Nightly Date Stamp 2023-03-02 00:01:14 -05:00
Brad King 532ca3e7c7 Merge topic 'check-curses-min-cmake'
d70582eed8 ccmake: Update minimum required version of CMake for curses check

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8272
2023-03-01 09:36:36 -05:00
Brad King a6b4bbfa57 Merge topic 'csharp_sdk_win32_exe'
0dff040f10 VS : Support WIN32_EXECUTABLE on SDK style projects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Sumit Bhardwaj <bhardwajs@outlook.com>
Merge-request: !8263
2023-03-01 09:22:05 -05:00
Brad King 0c30af2753 Merge topic 'remove-dart-modules'
2e469212c8 Dart,FindDart: Add policy to remove these modules
6dd2948b4b Tests: Port "testing" test from Dart module to CTest module
1f5ff4d131 Merge branch 'upstream-KWSys' into remove-dart-modules
ec3652a0bd KWSys 2023-02-28 (68534a6a)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Reviewed-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !8265
2023-03-01 09:21:03 -05:00
Brad King d70582eed8 ccmake: Update minimum required version of CMake for curses check
This should have been part of commit d6b811fb82 (Require CMake 3.13+ to
configure CMake itself, 2022-02-22, v3.24.0-rc1~605^2~1).
2023-03-01 09:15:38 -05:00
Marc Chevrier ede33f30cf Apple: Handle generation and comsuption of text-based stubs (.tbd files)
Fixes: #24123
2023-03-01 12:23:28 +01:00
Kitware Robot 8807292ef4 CMake Nightly Date Stamp 2023-03-01 00:01:15 -05:00
Vitaly Stakhovsky 87c4eba5cb cmState::AddCacheEntry(): Remove unused overloads 2023-02-28 19:44:42 -05:00
Brad King b909be9e23 target_sources: Fix backtrace on missing source
If a source file is not found, the error message reports a backtrace.
Previously the backtrace pointed at where the target was created.
In the case of `target_sources`, the missing source may have been
named elsewhere.

Fixes: #24538
2023-02-28 18:07:36 -05:00
Robert Maynard c5305cf493 Makefile: Don't pass the CUDA compiler response files with UTF8_BOM
Fixes #24544
2023-02-28 15:39:55 -05:00
Brad King 2e469212c8 Dart,FindDart: Add policy to remove these modules
These modules and the "DART" tool they support have long been replaced
by CTest.
2023-02-28 08:43:45 -05:00
Brad King 1f5ff4d131 Merge branch 'upstream-KWSys' into remove-dart-modules
* upstream-KWSys:
  KWSys 2023-02-28 (68534a6a)
2023-02-28 08:35:02 -05:00
Brad King 12d041b8f7 Merge topic 'target_sources-file_set-no-exist'
7e3f9aa1b2 target_sources: give a hint when a file named `FILE_SET` is not found

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8253
2023-02-28 08:32:04 -05:00
Brad King 40539096fd Merge topic 'dll-name-soversion'
a7f9c7da26 Add option to add SOVERSION to DLL names
9694504adc Tests: Simplify RunCMake.TargetArtifacts spec
3cd34eb279 Tests: Rename RunCMake.{ArtifactOutputDirs => TargetArtifacts}

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8021
2023-02-28 08:29:20 -05:00
Marc Chevrier fcbd723a50 Enhance support functions
* Avoid duplicate definiitions for IsExecutableWithExports, etc...
* Add helper IsApple()
2023-02-28 14:24:03 +01:00
Olivier PENA 0dff040f10 VS : Support WIN32_EXECUTABLE on SDK style projects 2023-02-28 09:25:09 +01:00
Kitware Robot e4b56c8224 CMake Nightly Date Stamp 2023-02-28 00:01:10 -05:00
Ralf Habacker a7f9c7da26 Add option to add SOVERSION to DLL names
Add variable/target property `[CMAKE_]DLL_NAME_WITH_SOVERSION`.

Fixes: #24251
Signed-off-by: Ralf Habacker <ralf.habacker@freenet.de>
2023-02-27 09:18:34 -05:00
Brad King 9ae0402198 Merge topic 'install-prefix-genex-install-code-script'
18e02ace5b install(CODE|SCRIPT): Support $<INSTALL_PREFIX> genex

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8251
2023-02-27 09:06:20 -05:00
Kitware Robot 3ad47a8d3a CMake Nightly Date Stamp 2023-02-27 00:01:32 -05:00
Alexander Neundorf c351dcd967 TARGET_RUNTIME_DLL_DIRS: add the new genex to cmGeneratorExpressionNode
This commit adds handling for a new genex TARGET_RUNTIME_DLL_DIRS to
cmGeneratorExpressionNode. It refactors the code for TARGET_RUNTIME_DLLS
a bit, so that both TARGET_RUNTIME_DLL_DIRS and TARGET_RUNTIME_DLLS
share the implementation to collect all dlls. The new genex
collects the dlls and in a final step puts all the directories
into the result variable (and makes sure there are no duplicates).
2023-02-26 16:33:16 +01:00
Kitware Robot c2db641c25 CMake Nightly Date Stamp 2023-02-26 00:01:13 -05:00
Kitware Robot 85c77f059b CMake Nightly Date Stamp 2023-02-25 00:01:17 -05:00
Ben Boeckel 7e3f9aa1b2 target_sources: give a hint when a file named FILE_SET is not found
`FILE_SET` is only supported within `target_sources()` and only directly
after a visibility keyword or another `FILE_SET`. Give a hint as to what
might be wrong if a file named `FILE_SET` cannot be found for any
reason.

Fixes: #24539
2023-02-24 17:43:22 -05:00
Kyle Edwards 18e02ace5b install(CODE|SCRIPT): Support $<INSTALL_PREFIX> genex
Fixes: #24534
2023-02-24 10:17:45 -05:00
Brad King 35ca2d524b Merge topic 'msvc-embed-manifest-direct'
0b552eb877 MSVC: Embed manifests directly for non-incremental vs_link_exe links

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8245
2023-02-24 08:40:07 -05:00
Brad King 88b75204e5 Merge topic 'PATH-genex-handle-list-of-paths'
e395310a21 PATH-genex: handle lists for path decomposition and transformations

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !8238
2023-02-24 08:35:19 -05:00
Brad King d19b61bf43 Merge topic 'find_package-PACKAGENAME_ROOT'
df9c4b1872 find_package: Use <PACKAGENAME>_ROOT variables as search prefixes
4da27a73bd Help: Document <PackageName>_ROOT variable ordering using an ordered list
bfeb16bd5b cmFindPackageCommand: Refactor CMP0074 logic to de-duplicate lookups
c0fcd07e6f cmFindPackageCommand: Factor out methods for package root stack management
acd9636d9d cmSystemTools: Add helpers for reading and parsing PATH env vars

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8240
2023-02-24 08:31:28 -05:00
Kitware Robot 92fb3ba39f CMake Nightly Date Stamp 2023-02-24 00:01:14 -05:00
Andrew Ng 0b552eb877 MSVC: Embed manifests directly for non-incremental vs_link_exe links
This avoids the need to separately execute `mt.exe` to perform the
embedding of manifests into the output for non-incremental links. The
primary motivation for this change is that this separate execution of
`mt.exe` to embed manifests is known to cause intermittent failures due
to AV/security scanning.

The only change in behavior is that any linker generated manifest will
no longer be output as a separate manifest file alongside the output
file.

Fixes: #24531
2023-02-23 14:35:08 -05:00