Ben Boeckel
2f101b2c8c
Tests/CXXModules: support testing with custom stdlib json locations
2025-09-11 18:03:05 -04:00
Ben Boeckel
6c178a4ae3
Tests/RunCMake: add newlines in CXXModules options
...
Better readability for upcoming changes.
2025-09-11 18:03:05 -04:00
Ben Boeckel
2b85541e39
cxximportstd: support setting the import std metadata location
...
Some deployments may not be able to discover the metadata file reliably
(e.g., custom `clang` builds on macOS while using the SDK's stdlib or
distribution bugs). Allow users to force the location so that
compiler-driven detection doesn't have to bend over backwards for
unforeseen bugs.
2025-09-11 18:03:00 -04:00
Brad King
568e3318bc
Merge topic 'wix-multi-cab'
...
193f17102f CPack/WiX: Implement opt-in per component .cab
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11166
2025-09-11 12:04:27 -04:00
Brad King
d1f17a6b7c
Merge topic 'update-curl'
...
8145958e01 Merge branch 'upstream-curl' into update-curl
20103c0679 curl 2025-09-10 (11b99123)
dbb84e50b1 curl: Update script to get curl 8.16.0
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11169
2025-09-11 11:39:31 -04:00
Kitware Robot
50e5040cda
CMake Nightly Date Stamp
2025-09-11 00:05:14 -04:00
Brad King
8145958e01
Merge branch 'upstream-curl' into update-curl
...
* upstream-curl:
curl 2025-09-10 (11b99123)
2025-09-10 17:13:04 -04:00
Curl Upstream
20103c0679
curl 2025-09-10 (11b99123)
...
Code extracted from:
https://github.com/curl/curl.git
at commit 11b991232fbcaa88e2b1faecac224416b0001e35 (curl-8_16_0).
2025-09-10 17:07:26 -04:00
Brad King
dbb84e50b1
curl: Update script to get curl 8.16.0
2025-09-10 17:07:14 -04:00
Brad King
29633b2f81
Merge topic 'ninja-status-unset-configure'
...
b5e06311c0 Ninja: Avoid non-standard output from `ninja` during `try_compile`
fe0e2fcaff ScopedEnv: add a RAII helper to temporarily manipulate the environment
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Turbov <i.zaufi@gmail.com >
Merge-request: !11143
2025-09-10 10:06:49 -04:00
Brad King
042b88e3f4
Merge topic 'object-name-properties'
...
b53837a1bd prop_sf/INSTALL_OBJECT_NAME: support custom install object names
08f1a0fbc6 cmLocalGenerator: get the configuration when building object paths
168e55be41 cmObjectLocation: support install-specific object locations
84372ce0b5 prop_sf/OBJECT_NAME: no-op for the FASTBuild and Xcode generators
9ef99353cb prop_sf/OBJECT_NAME: support custom object names
7aff0d37b5 cmSourceFile: add accessors for PCH source files
bbdc2fd908 cmSourceFile: internally track CMake-managed source files
388923818d cmGeneratorTarget: return the source file added
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11144
2025-09-10 10:01:47 -04:00
Brad King
b768431138
Merge topic 'instrumentation-doc-format'
...
515be042e2 Help/instrumentation: Improve formatting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11163
2025-09-10 09:56:04 -04:00
Brad King
e0a9bbfc23
Merge topic 'target-SKIP_LINTING'
...
f100769d72 Add `SKIP_LINTING` target property and `CMAKE_SKIP_LINTING` variable
0d6b5d54b2 Tests/RunCMake/MultiLint: Extract test preparation code into separate file
3a21092d75 Tests/RunCMake/MultiLint: Refactor test runs
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11139
2025-09-10 09:53:48 -04:00
Nils Gladitz
193f17102f
CPack/WiX: Implement opt-in per component .cab
...
By setting CPACK_WIX_CAB_PER_COMPONENT users can generate one
.cab per component instead of one .cab per installer.
WiX compresses .cab files in parallel.
This may potentially speed up installer creation.
May also allow larger installers (there is a 2GB per .cab limit).
2025-09-10 12:24:42 +02:00
Kitware Robot
082071203f
CMake Nightly Date Stamp
2025-09-10 00:05:08 -04:00
Ben Boeckel
b53837a1bd
prop_sf/INSTALL_OBJECT_NAME: support custom install object names
...
These can support configuration-dependent queries much more easily, so
separate it out.
2025-09-09 09:58:07 -04:00
Ben Boeckel
08f1a0fbc6
cmLocalGenerator: get the configuration when building object paths
...
Install locations can be per-configuration, so this information is
necessary for this call. Plumb it through; usage will follow in the next
commit.
2025-09-09 09:58:07 -04:00
Ben Boeckel
168e55be41
cmObjectLocation: support install-specific object locations
...
This will be used to implement custom install object paths. These can
support per-configuration values much more easily as it is
generator-agnostic.
2025-09-09 09:58:07 -04:00
Ben Boeckel
84372ce0b5
prop_sf/OBJECT_NAME: no-op for the FASTBuild and Xcode generators
...
There's no control over the object base name implemented in the
FASTBuild generator. Rather than expecting some half-supported behavior,
just ignore it completely there.
Similarly, Xcode ends up making its own object paths internally
regardless of what CMake would like.
2025-09-09 09:58:07 -04:00
Ben Boeckel
9ef99353cb
prop_sf/OBJECT_NAME: support custom object names
...
Projects which ship object files as artifacts may want to control the
object names as much as possible. Support setting explicit object names
as source file properties to support such use cases.
2025-09-09 09:58:07 -04:00
Alex Turbov
f100769d72
Add SKIP_LINTING target property and CMAKE_SKIP_LINTING variable
...
These offer target-wide settings to disable lints.
Closes : #27191
2025-09-09 09:56:35 -04:00
Brad King
563e11b6fd
Merge topic 'cmake#27203/add-NDEBUG-GHS'
...
7493bc6d4a GHS C/CXX compiler: add NDEBUG compile define for non-debug aka release builds
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11158
2025-09-09 09:53:10 -04:00
Brad King
526b32ccc0
Merge topic 'c++23-ambiguous-overload'
...
9fac84dd7f cmStringAlgorithms: Fix C++23 ambiguous overload error
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !11155
2025-09-09 09:50:50 -04:00
Brad King
c81e96d80c
Merge topic 'CheckCompilerFlag-no-newlines'
...
993794f5f6 CheckCompilerFlag: Avoid matching parts of multiple messages
c196e024bd CheckCompilerFlag: Improve layout of message regex tables
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11161
2025-09-09 09:48:37 -04:00
Brad King
990301452b
Merge branch 'release-4.1'
2025-09-09 09:45:35 -04:00
Brad King
f32b6ae8f2
Merge topic 'iar-asm'
...
87d95b2222 ASM: Restore CMAKE_ASM_COMPILER_ARCHITECTURE_ID persistence
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11160
2025-09-09 09:45:34 -04:00
Brad King
9523d66df2
Merge topic 'iar-asm' into release-4.1
...
87d95b2222 ASM: Restore CMAKE_ASM_COMPILER_ARCHITECTURE_ID persistence
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11160
2025-09-09 09:45:32 -04:00
Brad King
517214ed9b
Merge topic 'typos-1.36.1'
...
8fb6449275 ci: Update to typos 1.36.1 in Fedora base image
49e05f9569 pre-commit: bump to typos 1.36.1
20e19a713d Source: Fix typo discovered by typos 1.36.1
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11150
2025-09-09 09:43:31 -04:00
Kitware Robot
ea2069bf9d
CMake Nightly Date Stamp
2025-09-09 00:05:11 -04:00
John Drouhard
b5e06311c0
Ninja: Avoid non-standard output from ninja during try_compile
...
We sometimes parse the output from `ninja` during `try_compile`. Avoid
unexpected characters.
Fixes : #19316
2025-09-08 16:22:58 -05:00
John Drouhard
fe0e2fcaff
ScopedEnv: add a RAII helper to temporarily manipulate the environment
2025-09-08 16:22:58 -05:00
Brad King
f2b9c01d0c
Merge branch 'release-4.1'
2025-09-08 15:57:42 -04:00
Brad King
f8608b020b
Merge branch 'release-4.0'
2025-09-08 15:57:28 -04:00
Tyler Yankee
515be042e2
Help/instrumentation: Improve formatting
...
* Fix bullet points from commit bf52fbfbc4 (instrumentation: Add Google
trace output, 2025-08-28).
* Pluralize "v1 Snippet File" where applicable.
* Wrap long lines to <80 chars where applicable.
2025-09-08 15:57:18 -04:00
Brad King
e7fd2b3251
Merge branch 'release-4.0' into release-4.1
2025-09-08 15:57:08 -04:00
Brad King
edd51d646c
CMake 4.0.4
v4.0.4
2025-09-08 14:51:44 -04:00
Alex Turbov
8fb6449275
ci: Update to typos 1.36.1 in Fedora base image
2025-09-08 12:20:28 -04:00
Andreas Graf
7493bc6d4a
GHS C/CXX compiler: add NDEBUG compile define for non-debug aka release builds
...
Fixes : #27203
2025-09-08 18:19:03 +02:00
Alex Turbov
49e05f9569
pre-commit: bump to typos 1.36.1
2025-09-08 12:17:47 -04:00
Alex Turbov
20e19a713d
Source: Fix typo discovered by typos 1.36.1
2025-09-08 12:14:39 -04:00
Ben Boeckel
7aff0d37b5
cmSourceFile: add accessors for PCH source files
...
`cmLocalGenerator::GetObjectFileNameWithoutTarget` used a heuristic to
detect PCH sources. Use the new special source types to detect them
reliably instead.
2025-09-08 11:59:57 -04:00
Ben Boeckel
bbdc2fd908
cmSourceFile: internally track CMake-managed source files
...
These source file types don't necessarily show up in the CMake code, but
are side effects of other behaviors in CMake. Support tracking them
specially so that heuristics are not required to figure out if a given
`cmSourceFile` is one of them.
2025-09-08 11:59:57 -04:00
Ben Boeckel
388923818d
cmGeneratorTarget: return the source file added
...
A few callsites uses this codepath to generate `cmSourceFile` instances;
allow them to access it.
2025-09-08 11:59:57 -04:00
Ben Boeckel
43633440e9
gitlab-ci: fix nightly -> no-mr job dependencies
2025-09-08 11:59:57 -04:00
Ben Boeckel
232feec0b1
cmCMakePath: support constructing .end() iterators
...
Dereferencing the iterator must be avoided once it becomes the `.end()`
value. Check for iterator validity before updating the `PathElement`
member.
2025-09-08 11:59:56 -04:00
Ben Boeckel
53ba88b863
gitlab-ci: hide Intel Classic jobs from MRs
...
These jobs require secrets not available to merge request pipelines.
2025-09-08 11:59:56 -04:00
Ben Boeckel
99d48a842d
cmLocalGenerator: fix comment typo
2025-09-08 11:59:56 -04:00
Brad King
a3a3416bc1
Merge topic 'install-object-only-destination'
...
c1de3c72a3 install: support using `DESTINATION` as-is for object installation
cf44806e7c Help/CMAKE_INSTALL_OBJECT_NAME_STRATEGY: add `versionadded` directive
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11138
2025-09-08 11:32:05 -04:00
Brad King
bf1841534c
Merge topic 'cpack-several-checksums'
...
bc1c295b95 CPack: Add support for multiple checksums per package
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !11141
2025-09-08 11:29:34 -04:00
Brad King
daf5cc56a0
Merge topic 'fbuild_clang_cl'
...
888e9e1081 FASTBuild: fix CMake build with clang-cl
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !11137
2025-09-08 11:25:51 -04:00