Brad King
75da788360
Merge topic 'find-package-required'
...
857a039d66 find_*: Add variable to default calls to REQUIRED
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10364
2025-02-28 11:15:23 -05:00
Brad King
7f850fba3c
Merge topic 'rel-sunos'
...
5dd973f900 ci: Convert sunos packaging jobs to build sunos-{x86_64,sparc64} binaries
fd1907e50e Utilities/Release: Convert base images to build sunos-{x86_64,sparc64}
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10401
2025-02-28 11:09:49 -05:00
Kitware Robot
2e8cef8237
CMake Nightly Date Stamp
2025-02-28 00:06:53 -05:00
Brad King
5dd973f900
ci: Convert sunos packaging jobs to build sunos-{x86_64,sparc64} binaries
2025-02-27 16:35:09 -05:00
Martin Duffy
857a039d66
find_*: Add variable to default calls to REQUIRED
...
This adds a `CMAKE_FIND_REQUIRED` variable which causes `find_package`,
`find_path`, `find_file`, `find_library` and `find_program` to be
considered `REQUIRED` by default.
It also introduces an `OPTIONAL` keyword to those commands, allowing
them to ignore the value of this variable.
Issue: #26576
2025-02-27 10:51:07 -05:00
Brad King
fafe7f280f
Merge topic 'export-cps-build'
...
c8ccd5a9e3 export: Add build-tree CPS support
4577e06d91 cmExportCommand: Tag arguments that shouldn't be empty
9d83a1ed1f Tests: Rename certain CPS tests
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10395
2025-02-27 09:29:32 -05:00
Brad King
c493e8b6de
Merge topic 'string-TIMESTAMP-2038'
...
74519e1c83 string(TIMESTAMP): Fix %s placeholder for year 2038 on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10389
2025-02-27 09:26:22 -05:00
Kitware Robot
85f543a473
CMake Nightly Date Stamp
2025-02-27 00:08:11 -05:00
Brad King
3bdf63e84d
Merge topic 'cmake-gui-reload-presets'
...
74be7f5d79 cmake-gui: Add 'Reload Presets' button, replacing reload timer
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10361
2025-02-26 08:44:31 -05:00
Brad King
67f7b5935b
Merge topic 'add-custom-command-xcode16-depends'
...
2dc8c1d45f Xcode: Fix POST_BUILD order in bundle targets on Xcode 16+
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10345
2025-02-26 08:40:32 -05:00
Brad King
74519e1c83
string(TIMESTAMP): Fix %s placeholder for year 2038 on Windows
...
`difftime` returns a `double`, so commit 6727270b75 (CMake: Extend
TIMESTAMP sub-commands with new unix time format specifier, 2016-02-16,
v3.6.0-rc1~338^2) cast it to `long` to get an integer result. However,
in the MSVC ABI, `long` is a 32-bit integer. Use an explicit 64-bit
integer type instead.
Fixes : #26716
2025-02-26 08:14:56 -05:00
Kitware Robot
16a253ef22
CMake Nightly Date Stamp
2025-02-26 00:06:04 -05:00
Matthew Woehlke
c8ccd5a9e3
export: Add build-tree CPS support
...
Add Common Package Specification support to export(EXPORT).
2025-02-25 15:42:23 -05:00
Matthew Woehlke
4577e06d91
cmExportCommand: Tag arguments that shouldn't be empty
...
Tweak some of the argument parsing in cmExportCommand.cxx to use
ArgumentParser::NonEmpty tags on named options that require a non-empty
value.
2025-02-25 12:18:13 -05:00
Brad King
4972938b7d
CMake 4.0.0-rc2
2025-02-25 10:56:02 -05:00
Will Bowers
74be7f5d79
cmake-gui: Add 'Reload Presets' button, replacing reload timer
...
Previously the presets handler in the GUI was on a timer. Because of
this, error messages got suppressed after the first one (even if the
error message is different from the one originally suppressed).
Add a "reload presets" button which forces the preset to reload, and
always provides an error message if the reload failed.
Fixes : #26707
2025-02-25 08:20:59 -07:00
Brad King
40ed8752ef
Merge topic 'genex-transitive-link-libraries'
...
b3da9c6d60 GenEx: Evaluate LINK_LIBRARIES target properties transitively
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10391
2025-02-25 10:08:14 -05:00
Brad King
18e041b28e
Merge topic 'fix-export-export-info'
...
26691689a3 export: Allow compatible build-tree exports
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !10392
2025-02-25 10:06:46 -05:00
Brad King
b1c592acc8
Merge topic 'add-dependency-one-arg'
...
609c949061 add_dependencies: Allow calling with no dependencies
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10372
2025-02-25 10:05:19 -05:00
Brad King
cdc1621013
Merge topic 'windows-export-bigobj'
...
08ca4fbc7a WINDOWS_EXPORT_ALL_SYMBOLS: Distinguish bigobj from cl -GL objects
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10382
2025-02-25 10:02:35 -05:00
Brad King
40bc9bfdac
Merge topic 'find_package-sort-direction'
...
0e2b87244c find_package: Fix CMAKE_FIND_PACKAGE_SORT_DIRECTION documented default
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !10390
2025-02-25 09:53:37 -05:00
Brad King
4af0f637c4
Merge topic 'instrumentation-quote-command'
...
4e7b37cad3 instrumentation: Quote command arguments to preserve separation
99cd4d979b CTest: Fix startTime in test snippets when using instrumentation
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10386
2025-02-25 09:38:52 -05:00
Alexandra Cherdantseva
2dc8c1d45f
Xcode: Fix POST_BUILD order in bundle targets on Xcode 16+
...
XCode 16+ no longer delays our POST_BUILD phase until after bundle files
like `Info.plist` are generated. Teach the Xcode generator to add
explicit dependencies to the POST_BUILD phase in bundle targets to
ensure the files are created before it runs.
Fixes : #26656
2025-02-25 08:15:12 -05:00
Kitware Robot
8cf08653f2
CMake Nightly Date Stamp
2025-02-25 00:08:29 -05:00
Hongxu Xu
0e2b87244c
find_package: Fix CMAKE_FIND_PACKAGE_SORT_DIRECTION documented default
...
Previously the documentation said the default was `DEC`,
but the implementation has always defaulted to `ASC`.
Fixes : #22728
2025-02-24 15:03:34 -05:00
Matthew Woehlke
26691689a3
export: Allow compatible build-tree exports
...
Modify how cmExportBuildFileGenerator::FindExportInfo collects target
export information to properly record the export sets which export a
target. (The old behavior treated every invocation as a separate set,
which is reasonable for export(TARGETS) but does not allow referencing a
target exported multiple times via export(EXPORT). This reflects recent
changes to allow this for installed exports.)
2025-02-24 14:54:50 -05:00
Xuntao Chi
08ca4fbc7a
WINDOWS_EXPORT_ALL_SYMBOLS: Distinguish bigobj from cl -GL objects
...
The MSVC `/GL` flag generates an object of type `ANON_OBJECT_V1`.
`bigobj` has version >= 2.
Fixes : #25798
2025-02-24 14:37:16 -05:00
Martin Duffy
609c949061
add_dependencies: Allow calling with no dependencies
...
Fixes : #26713
2025-02-24 13:56:31 -05:00
Martin Duffy
4e7b37cad3
instrumentation: Quote command arguments to preserve separation
...
Fixes : #26702
2025-02-24 13:11:19 -05:00
Martin Duffy
99cd4d979b
CTest: Fix startTime in test snippets when using instrumentation
...
Initialize SystemStartTime for TestProcess.
2025-02-24 11:50:11 -05:00
Brad King
b3da9c6d60
GenEx: Evaluate LINK_LIBRARIES target properties transitively
...
The `LINK_LIBRARIES` and `INTERFACE_LINK_LIBRARIES` target properties
establish the graph of link dependencies used to propagate usage
requirements transitively. Therefore the `$<TARGET_PROPERTY:...>`
generator expression should evaluate them transitively as it does for
other transitive properties. Add policy CMP0189 for compatibility.
Fixes : #26709
Issue: #12435
2025-02-24 11:43:47 -05:00
Brad King
f48beab388
Merge topic 'custom-transitive-properties'
...
77c7397ab4 Merge branch 'backport-3.31-custom-transitive-properties'
478d6cfd9a Merge branch 'backport-3.30-custom-transitive-properties'
8b5af40b34 GenEx: Fix evaluation of LINK_LIBRARIES as custom transitive property
161f703e76 GenEx: Restore evaluation context for conditional transitive properties
419c19d531 Tests: Extend CustomTransitiveProperties with custom transitive LINK_LIBRARIES
ff2004d430 Tests: Extend CustomTransitiveProperties with non-transitive LINK_LIBRARIES
d7f1a100d9 Tests: Split CustomTransitiveProperties argument checks into helper
5ac3cca63d Merge branch 'backport-3.31-custom-transitive-properties' (early part)
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10384
2025-02-24 09:15:47 -05:00
Kitware Robot
a29c2e1cf0
CMake Nightly Date Stamp
2025-02-24 00:07:23 -05:00
Brad King
77c7397ab4
Merge branch 'backport-3.31-custom-transitive-properties'
2025-02-23 08:36:56 -05:00
Brad King
478d6cfd9a
Merge branch 'backport-3.30-custom-transitive-properties'
2025-02-23 08:33:12 -05:00
Brad King
8b5af40b34
GenEx: Fix evaluation of LINK_LIBRARIES as custom transitive property
...
Fix logic from commit b9ee79b8a1 (GenEx: Add support for custom
transitive compile properties, 2024-05-09, v3.30.0-rc1~82^2~1) to more
precisely know when we are computing the link dependency graph.
Issue: #20416
Issue: #26709
2025-02-23 08:30:42 -05:00
Brad King
161f703e76
GenEx: Restore evaluation context for conditional transitive properties
...
In commit e8010b67c7 (cmGeneratorExpressionDAGChecker: Make local
generator available in constructor, 2024-04-25, v3.30.0-rc1~172^2~6)
we accidentally failed to preserve `EvaluateInterfaceProperty`'s
consistency with `TargetPropertyNode::Evaluate`. Fix its local
generator selection to match the evaluation context.
2025-02-23 08:30:33 -05:00
Kitware Robot
e185e7d706
CMake Nightly Date Stamp
2025-02-23 00:08:34 -05:00
Brad King
833cdca28b
Merge topic 'cmake-gui-test-qt6'
...
245f5ca8b3 Tests: Make CMakeGUI test build with both Qt5 and Qt6
5afbc739dc ci: Specify Qt version separately for each Fedora build
e35d1ee4cd cmake-gui: Clarify variable name for selected Qt major version
19a1c115e0 cmake-gui: Fix integer conversion warnings with Qt 6
cbf0d3da52 cmake-gui: Port away from deprecated API in Qt >= 6.7
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !10369
2025-02-22 09:49:25 -05:00
Brad King
5ac3cca63d
Merge branch 'backport-3.31-custom-transitive-properties' (early part)
2025-02-22 09:41:13 -05:00
Brad King
2ccbad90e6
cmGeneratorExpressionDAGChecker: Construct with initializer list syntax
2025-02-22 09:11:20 -05:00
Brad King
99fee5720d
cmGeneratorExpressionDAGChecker: De-duplicate constructor signature
2025-02-22 08:46:44 -05:00
Brad King
82151ea289
cmGeneratorExpressionDAGChecker: Construct with initializer list syntax
2025-02-22 08:33:20 -05:00
Kitware Robot
96d71dbbbd
CMake Nightly Date Stamp
2025-02-22 00:05:50 -05:00
Alexandru Croitor
245f5ca8b3
Tests: Make CMakeGUI test build with both Qt5 and Qt6
...
Fixes : #26710
2025-02-21 14:41:12 -05:00
Brad King
e35d1ee4cd
cmake-gui: Clarify variable name for selected Qt major version
2025-02-21 14:41:12 -05:00
Brad King
19a1c115e0
cmake-gui: Fix integer conversion warnings with Qt 6
2025-02-21 14:41:12 -05:00
Brad King
cbf0d3da52
cmake-gui: Port away from deprecated API in Qt >= 6.7
2025-02-21 12:39:19 -05:00
Brad King
f0140a6e72
Merge topic 'policy-version-env'
...
33856b1d62 Add CMAKE_POLICY_VERSION_MINIMUM environment variable
04721acc6c Tests: Cover CMAKE_POLICY_VERSION_MINIMUM in initial cache script
729470ff6d Tests: Cover CMAKE_POLICY_VERSION_MINIMUM in script mode
6cd10ffed7 Tests: Cover CMAKE_POLICY_VERSION_MINIMUM as cache entry
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: John Parent <john.parent@kitware.com >
Merge-request: !10376
2025-02-21 09:13:01 -05:00
Brad King
1d606df7cc
Merge topic 'policy-version-env' into release-4.0
...
33856b1d62 Add CMAKE_POLICY_VERSION_MINIMUM environment variable
04721acc6c Tests: Cover CMAKE_POLICY_VERSION_MINIMUM in initial cache script
729470ff6d Tests: Cover CMAKE_POLICY_VERSION_MINIMUM in script mode
6cd10ffed7 Tests: Cover CMAKE_POLICY_VERSION_MINIMUM as cache entry
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Acked-by: John Parent <john.parent@kitware.com >
Merge-request: !10376
2025-02-21 09:12:59 -05:00