Marc Chevrier
8d7e80cf3d
find_* commands: add control over Windows registry views
...
Fixes : #22775
2022-04-29 22:00:02 +02:00
Brad King
07a54b2bb2
Merge topic 'target-bundle-dir-name-genex'
...
997af2e1a6 Genex: Add TARGET_BUNDLE_DIR_NAME
627b2eba6c Help: Make TARGET_BUNDLE[_CONTENT]_DIR examples more precise
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7177
2022-04-26 11:15:47 -04:00
Ben Leadbetter
997af2e1a6
Genex: Add TARGET_BUNDLE_DIR_NAME
...
Evaluate to the name of the bundle directory for a given bundle target.
Fixes : #23409
2022-04-22 09:23:46 -04:00
Brad King
1bd85e8f3f
Merge topic 'NO_CMAKE_INSTALL_PREFIX'
...
42f7e39789 Find: Support per call disabling of CMAKE_INSTALL_PREFIX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7163
2022-04-22 08:59:09 -04:00
Brad King
2167fce99b
Utilities/Release: Drop SLA from CMake macOS DMG package
...
macOS 12 deprecates the tools needed to attach a SLA to a `.dmg`.
CMake 3.23 added `CPACK_DMG_SLA_USE_RESOURCE_FILE_LICENSE` to
control whether `CPACK_RESOURCE_FILE_LICENSE` is used as the SLA.
CMake 3.24 will add policy CMP0133 to disable the SLA by default.
Explicitly turn off the SLA for CMake's official macOS binaries.
This will allow them to build on future macOS versions that have
no SLA tooling available.
Issue: #22978
2022-04-20 13:27:39 -04:00
Brad King
722e4d4619
Merge topic 'cpack-dmg-sla'
...
b760828d3f CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7176
2022-04-20 11:38:15 -04:00
Brad King
ac68695b94
Merge topic 'vs-dotnet-startup-object'
...
d89af11f89 VS: Add StartupObject property for managed .NET projects
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7171
2022-04-20 11:35:03 -04:00
Robert Maynard
42f7e39789
Find: Support per call disabling of CMAKE_INSTALL_PREFIX
...
Fixes #23359
2022-04-15 09:33:55 -04:00
Brad King
b760828d3f
CPack/DMG: Do not use CPACK_RESOURCE_FILE_LICENSE for SLA by default
...
Since macOS 12.0 deprecated the tools needed to attach a SLA to a
`.dmg`, we should no longer do this by default. Add a policy to
change the default to off.
Fixes : #22978
2022-04-14 10:14:58 -04:00
Marc Chevrier
17ff86547e
cmake_host_system_information: query windows registry
...
Fixes : #21240 , #23367
2022-04-13 08:59:08 -04:00
Florian Schweiger
d89af11f89
VS: Add StartupObject property for managed .NET projects
2022-04-12 15:35:17 +02:00
Brad King
c8f912fa59
Merge topic 'FindJNI-targets'
...
00c4f488f2 FindJNI: support Android NDK
171d45c039 FindJNI: added components and imported targets
35e92ec619 FindJNI: improved description
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex <leha-bot@yandex.ru >
Merge-request: !7069
2022-04-07 09:11:56 -04:00
Brad King
c508935dad
Merge topic 'adsp-platform-and-compilers'
...
87142bbd5f ADSP: Add dedicated platform module
e9eabb0dcd ADSP: Configure compiler in compiler module
88b38f531a ADSP: Support both VDSP++ and CCES for ADSP compilers
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7123
2022-04-06 12:04:43 -04:00
Brad King
2b4081660c
Merge topic 'FindMatlab-no-implicit-link'
...
178cf34bdc FindMatlab: Add NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES option to matlab_add_mex
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7139
2022-04-06 12:03:04 -04:00
Silvio
178cf34bdc
FindMatlab: Add NO_IMPLICIT_LINK_TO_MATLAB_LIBRARIES option to matlab_add_mex
2022-04-05 08:27:09 -04:00
Sergiu Deitsch
171d45c039
FindJNI: added components and imported targets
2022-04-04 19:46:32 +02:00
Chris Wright
87142bbd5f
ADSP: Add dedicated platform module
2022-04-04 17:05:09 +01:00
Chris Wright
e9eabb0dcd
ADSP: Configure compiler in compiler module
2022-04-04 16:56:47 +01:00
Chris Wright
88b38f531a
ADSP: Support both VDSP++ and CCES for ADSP compilers
2022-04-04 16:56:47 +01:00
Gregor Jasny
53ca6edd8a
xcode: add support for xcconfig files
...
Fixes : #18420
2022-04-03 22:39:34 +02:00
Brad King
a7b325e203
Merge topic 'verify-header-sets'
...
c798744f81 FILE_SET: Add VERIFY_HEADER_SETS target property
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7085
2022-03-30 09:10:25 -04:00
Kyle Edwards
c798744f81
FILE_SET: Add VERIFY_HEADER_SETS target property
...
Fixes : #23338
2022-03-29 13:58:27 -04:00
Craig Scott
05e510bf0b
CMP0132: Don't set compiler environment variables on first run
...
When running CMake for the first time in a build tree, for some
generators CMake would set compiler environment variables
like CC, CXX, etc. when the corresponding language is enabled.
That behavior was never documented and can result in different
behavior between the first and subsequent runs. Add a policy
to no longer set those environment variables.
Fixes : #21378
2022-03-29 09:42:59 -04:00
Brad King
25b9fb0b1a
Merge topic 'link-interface-direct'
...
cf312a2e54 LINK_LIBRARIES: Add support for LINK_ONLY genex
41a6b4a53b INTERFACE_LINK_LIBRARIES_DIRECT: Honor link dependencies through LINK_ONLY
73337cb383 LINK_LIBRARIES: Evaluate separately for linking and usage requirements
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7107
2022-03-25 09:12:39 -04:00
Brad King
96420a4afd
Merge topic 'cmake-fresh'
...
9f1471739d cmake: Add --fresh option to clear the cache and start from scratch
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !7099
2022-03-25 09:09:56 -04:00
Brad King
cf312a2e54
LINK_LIBRARIES: Add support for LINK_ONLY genex
...
Previously we always used content guarded by `$<LINK_ONLY:...>`
in `LINK_LIBRARIES`, even when evaluating for non-linking usage
requirements. Add a policy to honor `LINK_ONLY` in `LINK_LIBRARIES`
the same way we already do in `INTERFACE_LINK_LIBRARIES`.
2022-03-24 08:23:55 -04:00
Kasper Laudrup
0b7fd783f8
cmake -E tar: Add --touch option
...
Similar to GNU tar add a --touch option to the tar extract command to
skip extracting the timestamps from the files in the archive
effectively touching them as if they were just created.
Issue: #22746
2022-03-23 14:41:34 +01:00
Brad King
c4d16c4964
Merge topic 'LINK_GROUP-feat-RESCAN-on-BSD-systems'
...
d658332782 Genex-LINK_GROUP: Add support feature RESCAN on BSD systems
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7104
2022-03-23 09:30:29 -04:00
Brad King
6ab75f4c44
Merge topic 'revert-link-interface-direct-for-3.23'
...
75c701f66f Help: Update INTERFACE_LINK_LIBRARIES_DIRECT to be added in 3.24
0a35b70c24 Merge branch 'revert-link-interface-direct-for-3.23'
687a91967f Revert INTERFACE_LINK_LIBRARIES_DIRECT feature for 3.23 branch
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7098
2022-03-22 11:56:44 -04:00
Brad King
9f1471739d
cmake: Add --fresh option to clear the cache and start from scratch
...
Simplify the workflow to re-run CMake from scratch as if a build tree
were never before processed, regardless of whether it has been.
Fixes : #23119
2022-03-22 09:27:47 -04:00
Brad King
75c701f66f
Help: Update INTERFACE_LINK_LIBRARIES_DIRECT to be added in 3.24
...
This feature has been reverted from the 3.23 release branch.
Update its documentation and release note to target 3.24 instead.
Issue: #22496
2022-03-22 09:14:55 -04:00
Marc Chevrier
d658332782
Genex-LINK_GROUP: Add support feature RESCAN on BSD systems
2022-03-22 11:36:10 +01:00
Brad King
7e642a6fa0
Merge topic 'ghs_predefined_targets'
...
399e73b89a GHS: release note
829e946c69 GHS: Update tests for updated binary layout
93c1acd8ff GHS: List predefined targets before user targets in GUI
bdb213819c GHS: Do not include WindowsPaths
b3e9c72901 GHS: use INSTALL target
a645287784 GHS: update build command
724b5491ef GHS: Rearrange project files in binary directory
edff0f6a1d GHS: Use Custom Target for ALL_BUILD
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !7079
2022-03-21 14:36:42 -04:00
Brad King
a4b04e62fc
Merge topic 'LINK_LIBRARY-WHOLE_ARCHIVE'
...
dabe56de58 genex-LINK_LIBRARY: Add feature WHOLE_ARCHIVE
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: huangqinjin <huangqinjin@gmail.com >
Merge-request: !7064
2022-03-21 14:35:59 -04:00
Fred Baksik
399e73b89a
GHS: release note
2022-03-17 19:41:15 -04:00
Marc Chevrier
dabe56de58
genex-LINK_LIBRARY: Add feature WHOLE_ARCHIVE
2022-03-17 23:07:59 +01:00
Peter Würth
185723461f
FindZLIB: more library names + option to prefer static library
...
Adds additional library names `zlibstat[d]` and `zlibvc[d]` for Windows,
when zlib is built using one of the Visual Studio solutions under
`zlib/contrib/vstudio`.
Adds a `ZLIB_USE_STATIC_LIBS` option that is equivilent to similar
settings in other modules such as FindProtobuf, FindOpenSSL, etc.
Implements #18029 and #23140
2022-03-12 17:55:57 +01:00
Brad King
96b7ca3576
Merge topic 'find_package-global-imported'
...
2f1ffa003c find_package: Add support for default GLOBAL imported targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !6862
2022-03-11 08:54:36 -05:00
John Parent
2f1ffa003c
find_package: Add support for default GLOBAL imported targets
...
Allow find package to promote scope of imported targets by specifying
an argument to `find_package` or by specifying a CMake variable.
* Add support for CMAKE_GLOBAL_IMPORT_SCOPE variable
* Add support for GLOBAL argument to find_package
Additionally add testing for above features.
2022-03-10 12:44:36 -05:00
Brad King
d1b48bfabd
CUDA: Add support for CUDA_ARCHITECTURES=native
...
CUDA 11.6 added the `nvcc -arch=native` flag to automatically compile
for the host GPUs' architectures. Add support for specifying this
special `native` value in `CMAKE_CUDA_ARCHITECTURES` and
`CUDA_ARCHITECTURES`. During the compiler ABI detection step,
detect the native architectures so we can pass them explicitly
when using Clang or older versions of nvcc.
Fixes : #22375
2022-03-10 09:27:29 -05:00
Brad King
51e81d1f73
Merge topic 'color-diagnostics'
...
6ab9fbd43b color: Add tests for CMAKE_COLOR_DIAGNOSTICS
78adb1b952 color: Add CMAKE_COLOR_DIAGNOSTICS environment variable
884d9de8b7 color: Introduce CMAKE_COLOR_DIAGNOSTICS variable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: Frank Dana <ferdnyc@gmail.com >
Merge-request: !6990
2022-03-09 12:15:53 -05:00
Semyon Kolton
78adb1b952
color: Add CMAKE_COLOR_DIAGNOSTICS environment variable
2022-03-08 16:38:13 -05:00
Semyon Kolton
884d9de8b7
color: Introduce CMAKE_COLOR_DIAGNOSTICS variable
...
Add a variable to control both makefile color messages and compiler
color diagnostics.
Fixes : #15502
2022-03-08 16:37:08 -05:00
Brad King
49642079e5
Merge topic 'LINK_LIBRARY-libraries'
...
9fb1dff070 LINK_LIBRARY: Add features for library support on Apple
93a153bc7f Genx-LINK_LIBRARY: simplify framework features definitions
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7029
2022-03-07 10:04:13 -05:00
Brad King
7e807479ff
Merge topic 'LINK_GROUP-rescan-static-libs'
...
b0fada9964 Genex-LINK_GROUP: Add feature RESCAN
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7044
2022-03-07 10:03:36 -05:00
Marc Chevrier
9fb1dff070
LINK_LIBRARY: Add features for library support on Apple
2022-03-05 13:57:45 +01:00
Marc Chevrier
b0fada9964
Genex-LINK_GROUP: Add feature RESCAN
...
Feature RESCAN can be used to manage circular references between
static libraries.
2022-03-05 12:40:26 +01:00
Brad King
30313aa721
while: diagnose errors during condition evaluation
...
Add a policy to diagnose condition errors in a compatible way.
Fixes : #23296
2022-03-04 13:55:12 -05:00
Marc Chevrier
0a81ea1f12
Genex-LINK_GROUP: Add possibility to group libraries at link step
...
Fixes : #23121
2022-02-28 10:26:26 +01:00
Russell Greene
525faec4e9
CPack: Add parallel zstd compression
2022-02-23 08:39:32 -05:00