Brad King
bc1fd4b606
Merge topic 'doc-list-semicolons'
...
8abd714176 Help: Clarify that ENVIRONMENT test properties take ;-separated lists
02cf404ace Help: Add advice for dealing with semicolons in lists
c4117d9116 ExternalProject: Document that LIST_SEPARATOR works for CMAKE_ARGS too
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !7066
2022-03-16 11:14:59 -04:00
Brad King
fd44bb2648
Merge topic 'language-header-file-only-doc'
...
83a80e5193 Help: Clarify interaction of LANGUAGE and HEADER_FILE_ONLY
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7075
2022-03-16 11:13:59 -04:00
Brad King
8abd714176
Help: Clarify that ENVIRONMENT test properties take ;-separated lists
...
Follow up commit 79f64cc773 (Help: ENVIRONMENT_MODIFICATION clarify only
supports singular values, 2022-02-23) to specifically call out the list
format.
Issue: #23315
2022-03-15 15:49:21 -04:00
Brad King
02cf404ace
Help: Add advice for dealing with semicolons in lists
...
Issue: #23315
2022-03-15 15:49:13 -04:00
Kyle Edwards
83a80e5193
Help: Clarify interaction of LANGUAGE and HEADER_FILE_ONLY
2022-03-15 13:06:35 -04:00
Brad King
cffc2b6942
Merge topic 'doc-ignore-prefix-paths'
...
5cb0a730c9 Help: Clarify behavior of search ignore-related variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7056
2022-03-15 12:48:42 -04:00
Brad King
790c225208
Merge topic 'doc-ignore-prefix-paths' into release-3.23
...
5cb0a730c9 Help: Clarify behavior of search ignore-related variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7056
2022-03-15 12:48:41 -04:00
Craig Scott
f0bb4a461a
Merge topic 'doc-LINK_LIBRARIES_ONLY_TARGETS'
...
95cdce829f Help: Fix typo and improve readability for LINK_LIBRARIES_ONLY_TARGETS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7068
2022-03-14 07:55:10 -04:00
Craig Scott
95cdce829f
Help: Fix typo and improve readability for LINK_LIBRARIES_ONLY_TARGETS
2022-03-13 20:31:08 +11:00
Craig Scott
5cb0a730c9
Help: Clarify behavior of search ignore-related variables
...
Not all the behaviors of CMake variables for ignoring search
locations by find_...() commands were fully documented.
Add the missing effects, clarify the wording and restructure the
way the details are assembled to reduce duplication.
Also improve the cross-referencing to ensure all the related
variables are more discoverable.
Issue: #20878
2022-03-13 14:29:05 +11: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
cbd36eac23
Merge topic 'ctest_truncate'
...
140704d443 ctest: add option for output truncation
359e5b17d8 presets: bump version to v5
4634de335b cmCTestTestHandler: refactor CleanTestOutput method
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6993
2022-03-09 12:17:44 -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
Brad King
363a0d6010
Merge topic 'doc-file-sets'
...
4286b72240 Help: Update install() docs to better reflect preference for file sets
ab1b573f41 Help: Reorganise FILE_SETS and related properties
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7031
2022-03-09 12:07:58 -05:00
Brad King
9acecc3eb9
Merge topic 'doc-file-sets' into release-3.23
...
4286b72240 Help: Update install() docs to better reflect preference for file sets
ab1b573f41 Help: Reorganise FILE_SETS and related properties
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7031
2022-03-09 12:07:57 -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
28f8b5cb0c
Merge topic 'cmake-presets-file-dir'
...
f54507c2f6 CMakePresets.json: Add ${fileDir} macro
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Acked-by: Gerhard Olsson <gerhard.nospam@gmail.com >
Merge-request: !7051
2022-03-08 16:03:15 -05:00
Brad King
11c25ae6ae
Merge topic 'cmake-presets-file-dir' into release-3.23
...
f54507c2f6 CMakePresets.json: Add ${fileDir} macro
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Acked-by: Gerhard Olsson <gerhard.nospam@gmail.com >
Merge-request: !7051
2022-03-08 16:03:14 -05:00
Brad King
f78cd55453
Merge topic 'doc-lang-std-features'
...
fbda79f39d Help: Document explicitly that 'cxx_std_##' features may not add a flag
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: antmak <antmak.pub@gmail.com >
Merge-request: !7043
2022-03-08 08:25:20 -05:00
Brad King
130c988982
Merge topic 'doc-lang-std-features' into release-3.23
...
fbda79f39d Help: Document explicitly that 'cxx_std_##' features may not add a flag
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: antmak <antmak.pub@gmail.com >
Merge-request: !7043
2022-03-08 08:25:19 -05:00
Frank Winklmeier
140704d443
ctest: add option for output truncation
...
Add `--test-output-truncation` to `ctest`. This option can be used to
customize which part of the test output is being truncated. Currently
supported values are `tail`, `middle` and `head`.
Also add equivalent `CTEST_CUSTOM_TEST_OUTPUT_TRUNCATION` variable.
Fixes : #23206
2022-03-08 08:18:02 -05:00
Frank Winklmeier
359e5b17d8
presets: bump version to v5
...
Prepare for new test preset fields.
2022-03-08 08:18:02 -05:00
Craig Scott
4286b72240
Help: Update install() docs to better reflect preference for file sets
...
Previously, headers would typically be installed as bare files or
as whole directories. File sets offer a better abstraction and
associate headers with a target, installing them as part of the
target. Add notes and update examples to draw the reader's
attention to the advantages of file sets for headers.
2022-03-08 19:38:56 +11:00
Kyle Edwards
f54507c2f6
CMakePresets.json: Add ${fileDir} macro
...
Fixes : #23214
2022-03-07 18:03:16 -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
Brad King
fbda79f39d
Help: Document explicitly that 'cxx_std_##' features may not add a flag
...
This is commonly reported incorrectly as a bug, so call out this
behavior explicitly in the documentation.
2022-03-07 09:48:26 -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
Craig Scott
ab1b573f41
Help: Reorganise FILE_SETS and related properties
...
Reduce duplication and make the docs for target_sources() focus
on the functionality rather than the properties it modifies.
The properties are a lower level quantity, so put the relevant
details for them in the property documentation. The target_sources()
command only needs to reference the properties, not reproduce
the property documentation.
Improve the cross-referencing between the HEADER_... property
docs. This helps build the mental picture of how they relate to
each other.
2022-03-05 17:33:36 +11: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
Brad King
7a8536e0ea
Merge branch 'release-3.22' into release-3.23
2022-03-04 12:52:28 -05:00
Brad King
4dfc166976
Merge branch 'release-3.22'
2022-03-04 12:52:03 -05:00
Brad King
6e9eaf209d
CMake 3.22.3
2022-03-04 12:06:35 -05:00
Brad King
41d13ade7c
Merge branch 'release-3.22' into release-3.23
2022-03-04 11:54:54 -05:00
Brad King
e7c9304504
Merge branch 'release-3.21' into release-3.22
2022-03-04 11:54:30 -05:00
Brad King
76096a0ef4
Merge branch 'release-3.21'
2022-03-04 11:46:13 -05:00
Brad King
78ae759e01
CMake 3.21.6
2022-03-04 10:52:43 -05:00
Brad King
89457cb8f0
Merge topic 'file-set-name-requirements'
...
b357d334fc target_sources(): Enforce stricter requirements for FILE_SET name
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7037
2022-03-04 09:09:33 -05:00
Brad King
65da32c924
Merge topic 'file-set-name-requirements' into release-3.23
...
b357d334fc target_sources(): Enforce stricter requirements for FILE_SET name
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !7037
2022-03-04 09:09:31 -05:00
Brad King
0d8bb14344
Merge topic 'file-set-multiple-names'
...
8c23ecbd93 target_sources(): Process multiple FILE_SET arguments per block
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7040
2022-03-04 09:07:04 -05:00
Kyle Edwards
8c23ecbd93
target_sources(): Process multiple FILE_SET arguments per block
...
Fixes : #23287
2022-03-03 14:31:54 -05:00
Kyle Edwards
b357d334fc
target_sources(): Enforce stricter requirements for FILE_SET name
...
Fixes : #23286
2022-03-03 10:17:10 -05:00
Brad King
cd6341b547
Merge topic 'cuda-arch-all'
...
2796d6eeca CUDA: Fix CMAKE_CUDA_ARCHITECTURES=all/all-major with NVCC 11.5+
e450d55552 Help: Update CUDA_ARCHITECTURES docs for generic all/all-major support
fe64c49e72 CUDA: Simplify CMAKE_CUDA_ARCHITECTURES special value logic
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7026
2022-03-02 07:52:18 -05:00
Brad King
04a7200c75
Merge topic 'cuda-arch-all' into release-3.23
...
2796d6eeca CUDA: Fix CMAKE_CUDA_ARCHITECTURES=all/all-major with NVCC 11.5+
e450d55552 Help: Update CUDA_ARCHITECTURES docs for generic all/all-major support
fe64c49e72 CUDA: Simplify CMAKE_CUDA_ARCHITECTURES special value logic
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7026
2022-03-02 07:52:17 -05:00
Brad King
11abe00616
Merge topic 'doc-presets-v4'
...
6404751176 Help: Improve wording and structure related to preset includes
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7028
2022-03-02 07:49:45 -05:00
Brad King
f0f4390325
Merge topic 'doc-presets-v4' into release-3.23
...
6404751176 Help: Improve wording and structure related to preset includes
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7028
2022-03-02 07:49:44 -05:00