Commit Graph

35877 Commits

Author SHA1 Message Date
Brad King
d588e81ffb CPack/WIX: Generate perMachine installers by default
Add policy CMP0172 to set `CPACK_WIX_INSTALL_SCOPE` to `perMachine` by
default.  Follow up commit 60661f6770 (CPack/WiX: Make InstallScope
configurable, 2023-11-07, v3.29.0-rc1~413^2) and commit 614100dbf6
(CPack/WiX: Restore default (missing) InstallScope from 3.28 and lower,
2024-06-05, v3.30.0-rc1~7^2~1).

Issue: #20962
Issue: #26029
2024-07-18 14:16:54 -04:00
Brad King
de8e176113 Merge topic 'parallel-install'
159ba027b9 Install: Add parallel installation option

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9611
2024-07-18 09:04:47 -04:00
Brad King
89dc9a6c41 Merge topic 'ninja-custom-target-build-event-dollar'
c3c14f04f2 Ninja: Fix build event commands with $-sign on custom targets

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9662
2024-07-18 09:00:30 -04:00
Brad King
f2e52b3124 Merge topic 'vs-cuda'
a9210a0c02 VS: Restore support for CUDA with no optimization flags

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !9666
2024-07-18 08:57:48 -04:00
Brad King
24f3862628 Merge topic 'macos-curl-backend'
f2596dfa0e macOS: Work around bug in system curl 8.{3,4,5} LibreSSL backend

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Ben Boeckel <ben.boeckel@kitware.com>
Merge-request: !9663
2024-07-18 08:56:32 -04:00
Kitware Robot
9e6690abeb CMake Nightly Date Stamp 2024-07-18 00:01:11 -04:00
Brad King
a9210a0c02 VS: Restore support for CUDA with no optimization flags
Since commit 67de5b7b82 (VS: Suppress MSBuild default settings affected
by UseDebugLibraries, 2024-02-13, v3.30.0-rc1~538^2~1) we generate an
empty `Optimization` element for the host compiler when there are no C
or C++ optimization flags enabled.  The CUDA Toolkit Visual Studio
integration fails with an error if an empty string is inherited from the
host compiler's `Optimization` element.  If no CUDA optimization flags
are specified, write an explicit empty `Optimization` element for the
CUDA compiler too.

Fixes: #26144
2024-07-17 11:42:31 -04:00
Brad King
046c63e376 Merge topic 'revert-autorcc-timestamp'
9ffac91e37 Autogen: Revert "Add timestamp file for CMAKE_GLOBAL_AUTORCC_TARGET"

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9649
2024-07-17 09:46:29 -04:00
Dávid Péter Jánosa
c3c14f04f2 Ninja: Fix build event commands with $-sign on custom targets
Fixes: #26143
2024-07-17 09:27:35 -04:00
Brad King
f2596dfa0e macOS: Work around bug in system curl 8.{3,4,5} LibreSSL backend
Since commit d3cbee99e3 (macOS: Prefer building with system-provided
curl, 2024-05-09, v3.30.0-rc1~130^2~1) CMake uses the macOS-provided
curl, which uses the LibreSSL backend by default.  This exposes us to
curl issue 12525, created and fixed by the following upstream curl
commits:

* commit `bec0c5bbf` (openssl: switch to modern init for
                      LibreSSL 2.7.0+, 2023-08-07, `curl-8_3_0~201`)
* commit `9f2d2290d` (openssl: re-match LibreSSL deinit with init,
                      2023-12-15, `curl-8_6_0~219`)

Work around the bug by preferring the secure-transport backend by
default on the problematic versions of curl.
2024-07-17 09:13:26 -04:00
Kitware Robot
4a382aa8dd CMake Nightly Date Stamp 2024-07-17 00:01:10 -04:00
Brad King
d34b428071 Merge topic 'custom-transitive-properties'
7a77a6c642 Restore support for exporting INTERFACE with missing dependencies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Acked-by: Robert Maynard <robertjmaynard@gmail.com>
Merge-request: !9656
2024-07-16 10:32:15 -04:00
Kitware Robot
8e5388573c CMake Nightly Date Stamp 2024-07-16 00:01:11 -04:00
Brad King
7a77a6c642 Restore support for exporting INTERFACE with missing dependencies
Since commit c16acd35b3 (GenEx: Add support for custom transitive link
properties, 2024-05-09, v3.30.0-rc1~82^2) evaluation of
`TRANSITIVE_LINK_PROPERTIES` by `install(EXPORT)` enables discovery of
missing dependencies on INTERFACE libraries that we did not previously
diagnose.  This regressed existing projects that relied on such
non-diagnosis.  Although commit 2fc9e482a9 (Evaluation of
TRANSITIVE_LINK_PROPERTIES isn't considered a usage, 2024-07-05) fixed
this, it also made a significant change to the `UseTo` infrastructure
that may have other subtle effects.  Replace the fix with an approach
that explicitly models suppression of the relevant diagnostics.

Fixes: #26108
2024-07-15 14:08:10 -04:00
Martin Duffy
159ba027b9 Install: Add parallel installation option
Fixes: #26000
2024-07-15 11:49:29 -04:00
Kitware Robot
ac4f6d513d CMake Nightly Date Stamp 2024-07-15 00:01:34 -04:00
Kitware Robot
0dfecc01fe CMake Nightly Date Stamp 2024-07-14 00:01:28 -04:00
Kitware Robot
36491101f5 CMake Nightly Date Stamp 2024-07-13 00:01:42 -04:00
Kitware Robot
228fd59897 CMake Nightly Date Stamp 2024-07-12 00:01:10 -04:00
Kitware Robot
de8911120e CMake Nightly Date Stamp 2024-07-11 00:01:22 -04:00
Orkun Tokdemir
9ffac91e37 Autogen: Revert "Add timestamp file for CMAKE_GLOBAL_AUTORCC_TARGET"
In the commit 8d99e71b, a new timestamp file was added to prevent
unneeded `AUTORCC` triggering after successful builds when
`CMAKE_GLOBAL_AUTORCC_TARGET` is ON. This caused a regression that
configuration fails when multiple `.qrc` files are added to a target.
This commits reverts 8d99e71b.

Issue: #26059
Fixes: #26126
2024-07-10 15:22:02 +02:00
Kitware Robot
e9fa1a3a18 CMake Nightly Date Stamp 2024-07-10 00:01:46 -04:00
Brad King
0b5df717ba Merge topic 'preset-comments'
ccd4612296 cmJSONState: Add missing member initializer

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9645
2024-07-09 14:16:12 -04:00
Kitware Robot
8fe9454bcc CMake Nightly Date Stamp 2024-07-09 00:01:58 -04:00
Brad King
ccd4612296 cmJSONState: Add missing member initializer
In commit 7d2cc6ece6 (presets: Allow comments in presets files,
2024-06-23) we added a member without an initializer.  This causes
dynamic analysis to report use of an uninitialized value.
2024-07-08 11:42:13 -04:00
Brad King
ead3548bed Merge topic 'xdg-config-dir'
5b3fbd5f64 cmSystemTools: Add CMake config directory

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !9615
2024-07-08 11:23:33 -04:00
Brad King
639346f319 Merge topic 'ios-mac-catalyst'
2785364b7b iOS: Add support for Mac Catalyst

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9595
2024-07-08 11:13:09 -04:00
Brad King
d3088a8eea Merge topic 'vs-dotnet-sdk-custom-command'
c7e5ebd0a8 VS: Support add_custom_command in .Net SDK-style projects

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9616
2024-07-08 10:17:28 -04:00
Kyle Edwards
e24af20340 Merge topic 'TRANSITIVE_LINK_PROPERTIES_isnt_usage'
2fc9e482a9 Evaluation of TRANSITIVE_LINK_PROPERTIES isn't considered a usage

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9643
2024-07-08 10:04:24 -04:00
Kitware Robot
d308437d6d CMake Nightly Date Stamp 2024-07-07 00:01:08 -04:00
Kitware Robot
7a46ac4a3e CMake Nightly Date Stamp 2024-07-06 00:01:33 -04:00
Robert Maynard
2fc9e482a9 Evaluation of TRANSITIVE_LINK_PROPERTIES isn't considered a usage
Fixes #26108
2024-07-05 13:16:47 -04:00
Kitware Robot
8e84a156fa CMake Nightly Date Stamp 2024-07-05 00:01:16 -04:00
Brad King
9c330283d6 Merge topic 'cmArgumentParser-Derived-Classes'
5fc2bad167 cmArgumentParser: Support binding with derived classes
e0f9d81f09 STL: extend type_traits to deal with member pointers

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9634
2024-07-04 10:10:07 -04:00
Brad King
3282ad4aee Merge topic 'cmake-help-workflow'
973bb02b14 cmake: Print --workflow option in --help output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !9637
2024-07-04 10:07:34 -04:00
Kitware Robot
a63bee680c CMake Nightly Date Stamp 2024-07-04 00:01:11 -04:00
Raul Metsma
2785364b7b iOS: Add support for Mac Catalyst
Issue: #20132
Signed-off-by: Raul Metsma <raul@metsma.ee>
2024-07-03 11:15:45 -04:00
Martin Duffy
5b3fbd5f64 cmSystemTools: Add CMake config directory 2024-07-03 09:34:41 -04:00
Kitware Robot
0b5af98032 CMake Nightly Date Stamp 2024-07-03 00:01:10 -04:00
Brad King
0f88f57389 CMake 3.30.0 2024-07-02 10:40:35 -04:00
Vito Gamberini
5fc2bad167 cmArgumentParser: Support binding with derived classes 2024-07-02 09:58:57 -04:00
Brad King
973bb02b14 cmake: Print --workflow option in --help output
This was missed in commit 374d82bbcd (cmake: Add --workflow mode,
2022-09-16, v3.25.0-rc1~76^2).
2024-07-02 08:37:29 -04:00
Brad King
db7d89369a Merge topic 'orkun_26080_27_06_2024'
91b2ce4a69 Autogen: Remove <target_name>_autogen_timestamp_deps target

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9631
2024-07-02 08:33:48 -04:00
Brad King
40ed14a88b Merge topic 'codegen'
197cb419d1 add_custom_command: Add CODEGEN support

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !9581
2024-07-02 08:18:04 -04:00
Kitware Robot
f3c3eee8d7 CMake Nightly Date Stamp 2024-07-02 00:01:34 -04:00
Juan Ramos
197cb419d1 add_custom_command: Add CODEGEN support
By specifying CODEGEN as an argument to add_custom_command the
custom command will be added to a codegen build target.

The intent is to provide a convenient way for users to get
their generated files without having to build the whole project.

This can be helpful for code analysis tools which can be useful
for IDEs and CI.
2024-07-01 12:02:49 -04:00
Kitware Robot
69d266e395 CMake Nightly Date Stamp 2024-07-01 00:02:20 -04:00
Kitware Robot
86e3bbfe7e CMake Nightly Date Stamp 2024-06-30 00:01:14 -04:00
Kitware Robot
af093bcc16 CMake Nightly Date Stamp 2024-06-29 00:01:13 -04:00
Kitware Robot
b72a5405a6 CMake Nightly Date Stamp 2024-06-28 00:01:15 -04:00