Brad King
c2100084c8
Merge topic 'tutorial-iface-order'
...
c6a426198a Tutorial: Move Step4-Ex1 to Step3-Ex2
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8417
2023-05-01 11:37:43 -04:00
Brad King
4bb13d6a5b
Merge topic 'cpack-inno-setup'
...
1d6db66179 CPack: Add Inno Setup generator
9b0dc652ff ci: Provide Inno Setup tools to some Windows CI jobs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8399
2023-05-01 11:35:46 -04:00
Paul Choisel
c6a426198a
Tutorial: Move Step4-Ex1 to Step3-Ex2
...
During the training, we talk about INTERFACE libraries just before Step3
so it makes more sense to do the exercise related to them in Step3
2023-04-28 16:23:59 +02:00
Jannik Alber
1d6db66179
CPack: Add Inno Setup generator
2023-04-28 09:33:28 -04:00
Le Go
5ee19d5746
FindDoxygen: Optionally use custom config file
2023-04-27 16:54:00 -04:00
Craig Scott
0ca98beb57
Merge topic 'ExternalProject-relative-git-urls'
...
550f63447d ExternalProject/FetchContent: Support relative remote URLs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !7988
2023-04-27 09:12:26 -04:00
Zoran Angelov
f552ba6e6d
presets: add support for macro expansion to includes
...
Only `$penv{}` can be expanded when processing includes.
2023-04-26 10:03:53 -04:00
Chris Wright
550f63447d
ExternalProject/FetchContent: Support relative remote URLs
...
Teach `ExternalProject_Add` and `FetchContent_Declare` to resolve
relative remote URLs provided via `GIT_REPOSITORY`. Add policy
CMP0150 to maintain compatibility.
Fixes : #24211
Co-Authored-By: Craig Scott <craig.scott@crascit.com >
2023-04-26 16:30:36 +08:00
Marc Chevrier
c36f03bfec
Merge topic 'GenEx-list'
...
31675964e7 GenEx LIST: list operations
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8410
2023-04-20 11:02:14 -04:00
Craig Scott
c648d7363d
Merge topic 'doc-workflow-presets-vendor'
...
dd8ac2f5ca Help: Add missing vendor field to the workflow presets docs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8419
2023-04-17 05:58:58 -04:00
Marc Chevrier
31675964e7
GenEx LIST: list operations
...
Fixes : #24550 , #24547
2023-04-16 12:00:20 +02:00
Marc Chevrier
c96df3dc8b
Merge branch 'backport-3.26-help-CMP0105' into Help-CMP0105-clarifications
2023-04-15 10:24:10 +02:00
Marc Chevrier
afd40232fa
Help: CMP0105 policy: clarifications
2023-04-15 10:11:22 +02:00
Craig Scott
dd8ac2f5ca
Help: Add missing vendor field to the workflow presets docs
...
The JSON schema already allows a vendor field for workflow presets,
but it was missed in the documentation. There is no change in behavior
or support, this just fixes an oversight in the docs when the workflow
presets were originally added.
2023-04-15 11:13:11 +10:00
Craig Scott
e245b4df75
Merge topic 'automoc-macro-names'
...
c5c3aff1f5 Autogen: Add INTERFACE_AUTOMOC_MACRO_NAMES target property
69cf9700e6 Autogen: Defer setup until Generate step
7cecb6353e cmGeneratorTarget: Factor out EvaluatedTargetProperty infrastructure
2daba01ddf cmGeneratorTarget: Avoid incidental include-what-you-use warning
850b4d990c IWYU: Add mapping for 'std::remove_reference<Defer &>::type'
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8391
2023-04-10 18:06:06 -04:00
Orkun Tokdemir
c5c3aff1f5
Autogen: Add INTERFACE_AUTOMOC_MACRO_NAMES target property
...
Add this target property to specify macro names that propagate to
dependents as `AUTOMOC_MACRO_NAMES`. The dependents will automatically
generate MOC files for source files that contain the inherited macro
names.
Co-Authored-By: Craig Scott <craig.scott@crascit.com >
Fixes : #19679
2023-04-09 20:51:15 +10:00
Brad King
fbdb509efe
Merge topic 'vs-sdk-selection'
...
8ecb645934 VS: Select Windows SDK matching WindowsSDKVersion env var
f90c8ab54e VS: Select latest available Windows SDK version by default
b512c53d43 VS: Add support for setting WindowsTargetPlatformVersion to 10.0
2f3d945f83 VS: Add CMAKE_GENERATOR_PLATFORM field to control Windows SDK selection
f0a67b6291 VS: Parse comma-separated fields from CMAKE_GENERATOR_PLATFORM
e259063b0a VS: Defer Windows SDK selection until CMAKE_GENERATOR_PLATFORM is known
8499374c6a VS: Simplify logic to require SDK for Windows Store
1c8d4b4bf1 Tests: Teach RunCMake_TEST_FILTER to account for test variant description
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8389
2023-04-06 09:13:31 -04:00
Brad King
e96f56708f
Merge topic 'doc-typo'
...
045fbbb47c Help: Remove duplicated word in COMPILE_OPTIONS target property docs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8396
2023-04-06 09:06:44 -04:00
Brad King
8ecb645934
VS: Select Windows SDK matching WindowsSDKVersion env var
...
In an environment established by `vcvarsall.bat` or similar, this
environment variable may be set to select a Windows SDK version.
If the VS generator is used in such an environment, use that SDK.
This is similar to how `CMAKE_GENERATOR_INSTANCE` defaults using
a `VS##0COMNTOOLS` environment variable.
Fixes : #17992
2023-04-05 12:06:22 -04:00
Brad King
f90c8ab54e
VS: Select latest available Windows SDK version by default
...
Add policy `CMP0149` to stop preferring SDKs exactly matching
`CMAKE_SYSTEM_VERSION` over the latest SDK.
Fixes : #16202
2023-04-05 12:06:22 -04:00
Brad King
b512c53d43
VS: Add support for setting WindowsTargetPlatformVersion to 10.0
...
VS 2019 and above support this value to select a SDK version
automatically.
Fixes : #21403
2023-04-05 12:06:22 -04:00
Brad King
2f3d945f83
VS: Add CMAKE_GENERATOR_PLATFORM field to control Windows SDK selection
...
Add a `version=` field to explicitly control the SDK version selection
without relying on `CMAKE_SYSTEM_VERSION`.
Fixes : #16713
2023-04-05 12:06:22 -04:00
Brad King
f0a67b6291
VS: Parse comma-separated fields from CMAKE_GENERATOR_PLATFORM
2023-04-05 12:06:22 -04:00
Brad King
045fbbb47c
Help: Remove duplicated word in COMPILE_OPTIONS target property docs
...
Fixes : #24673
2023-04-05 09:44:10 -04:00
Brad King
ff48c5080f
Merge branch 'release-3.26'
2023-04-04 15:43:13 -04:00
Brad King
624461526f
CMake 3.26.3
2023-04-04 14:59:48 -04:00
Brad King
561ae21f40
Help: Clarify that {add,target}_compile_options are not used for linking
...
Link to alternatives that can be used for adding link options.
Issue: #24662
2023-03-31 11:30:51 -04:00
Brad King
530faee017
Help: Clarify that CMAKE_<LANG>_FLAGS are used when driving linking
...
State explicitly that these flags are used when driving either compiling
or linking. For linking, document their order w.r.t. link flags
specified by commands.
Fixes : #24662
2023-03-31 11:01:13 -04:00
Brad King
f93b13151e
Help: Link to COMPILE_LANGUAGE genex from add_compile_options
...
Follow-up commit e2830cf16b (Help: Link to COMPILE_LANGUAGE genex
from target_compile_options, 2023-03-28).
Issue: #24639
2023-03-31 11:01:13 -04:00
Brad King
fb37de96a0
Merge topic 'remove-FindPythonInterp-FindPythonLibs'
...
a4c5b91f80 FindPython{Interp,Libs}: Add policy to remove these modules
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: scivision <michael@scivision.dev >
Merge-request: !8380
2023-03-31 08:08:18 -04:00
Brad King
a4c5b91f80
FindPython{Interp,Libs}: Add policy to remove these modules
...
The `FindPythonInterp` and `FindPythonLibs` modules have been deprecated
since CMake 3.12. Add a policy to pretend they do not exist in order to
encourage projects to port to `FindPython` or `FindPython{2,3}`.
2023-03-30 12:05:09 -04:00
Artin Alavi
8e579b0228
presets: Add trace options to configure presets
...
Add JSON schema version 7 to support them.
Fixes : #22543
2023-03-30 09:18:53 -04:00
Brad King
63441bb920
Merge branch 'release-3.26'
2023-03-29 14:59:59 -04:00
Brad King
bef6a27531
CMake 3.26.2
2023-03-29 14:19:57 -04:00
Brad King
e2830cf16b
Help: Link to COMPILE_LANGUAGE genex from target_compile_options
...
Issue: #24639
2023-03-28 10:57:31 -04:00
Brad King
f4b8176447
Merge topic 'lint-genex'
...
099934e313 Add generator expression support to static code analysis hooks
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8361
2023-03-28 08:18:43 -04:00
Brad King
3beeca8e36
Merge topic 'FindPython-Windows-ARM'
...
9913c28ebb FindPython: Add Windows/ARM support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: David Lechner <david@lechnology.com >
Merge-request: !8354
2023-03-28 08:15:14 -04:00
Brad King
eb890ba3fc
Merge topic 'file-GET_RUNTIME_DEPENDENCIES-windows-casing'
...
5922c86ed6 file(GET_RUNTIME_DEPENDENCIES): Document case-preserving change on Windows
7dffe99ad8 Tests: Restore CudaOnly.RuntimeControls cudart verification on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !8367
2023-03-28 08:13:31 -04:00
Stefan Schober
099934e313
Add generator expression support to static code analysis hooks
...
Teach target properties `<LANG>_CPPCHECK`, `<LANG>_CPPLINT`,
`<LANG>_CLANG_TIDY` and `<LANG>_INCLUDE_WHAT_YOU_USE` to accept
generator expressions.
2023-03-27 11:48:41 -04:00
Brad King
2deb22e160
Merge topic 'crosscompiling-warn-reset'
...
4d23636694 Warn if CMAKE_CROSSCOMPILING is true without CMAKE_SYSTEM_NAME set
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8358
2023-03-27 09:53:53 -04:00
Brad King
5922c86ed6
file(GET_RUNTIME_DEPENDENCIES): Document case-preserving change on Windows
...
In commit fa45594407 (file(GET_RUNTIME_DEPENDENCIES): Preserve casing
for Windows PE binaries, 2023-03-06) we neglected to update associated
documentation.
2023-03-27 09:49:51 -04:00
Marc Chevrier
9913c28ebb
FindPython: Add Windows/ARM support
...
Fixes : #24587
2023-03-26 10:58:12 +02:00
Brad King
512f64289a
Help: Clarify that set(VAR) unsets VAR
...
Also call out possible exposure of an existing cache entry of the same
name, as we have for the `unset` command since commit 1a0f1a25a4 (Help:
Clarify the unset command, 2018-08-17, v3.13.0-rc1~199^2).
Issue: #24633
2023-03-24 14:44:45 -04:00
Martin Storsjö
4d23636694
Warn if CMAKE_CROSSCOMPILING is true without CMAKE_SYSTEM_NAME set
...
Also clarify the `CMAKE_CROSSCOMPILING` documentation to state that
CMake sets the variable automatically.
2023-03-24 11:57:01 -04:00
Brad King
c96f977017
Merge branch 'release-3.26'
2023-03-23 10:03:49 -04:00
Brad King
fae6e8c2cd
CMake 3.26.1
2023-03-23 09:12:04 -04:00
Brad King
5386dc582b
Merge topic 'autogen-exe-vars'
...
b3d1797508 Autogen: Add CMAKE_AUTO*_EXECUTABLE variables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8352
2023-03-23 08:46:45 -04:00
Orkun Tokdemir
b3d1797508
Autogen: Add CMAKE_AUTO*_EXECUTABLE variables
...
Add the `CMAKE_AUTOMOC_EXECUTABLE`, `CMAKE_AUTOUIC_EXECUTABLE`, and
`CMAKE_AUTORCC_EXECUTABLE` variables to initialize the corresponding
`AUTO{MOC,UIC,RCC}_EXECUTABLE` target properties.
Fixes : #20071
2023-03-22 07:31:56 -04:00
Brad King
301279e4a9
Help: Replace link with its permanent redirect
2023-03-18 08:46:12 -04:00
Brad King
2c2c2c2227
Merge topic 'vs-windows-min-version'
...
6546305b01 VS: Add CMAKE_VS_WINDOWS_TARGET_PLATFORM_MIN_VERSION variable
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8319
2023-03-16 09:11:07 -04:00