Brad King
8a79a20257
Merge topic 'ninja-minor-cleanups'
...
c2e949b700 cmGlobalNinjaGenerator: remove unnecessary virtual method
1cfba13004 cmGlobalNinjaGenerator: fix lambda variable name typo
f02c3c6181 cmFileCommand: combine string literals
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !8901
2023-10-23 09:40:27 -04:00
Brad King
e93ad8eecd
Merge topic 'ninja-better-order-depends'
...
ed45432571 cmNinjaTargetGenerator: do not order-depend on C++ module sources
0973cd6702 cmNinjaTargetGenerator: use the file set visibility API
4625170925 cmFileSet: add a query for includeable file set types
51f9d9f0a2 cmNinjaTargetGenerator: avoid traversing old outputs repeatedly
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !8902
2023-10-23 09:39:23 -04:00
Kitware Robot
b94a5ec2ee
CMake Nightly Date Stamp
2023-10-23 00:01:33 -04:00
Kitware Robot
a8d5aedd9c
CMake Nightly Date Stamp
2023-10-22 00:01:06 -04:00
Kitware Robot
aab0d6bc4f
CMake Nightly Date Stamp
2023-10-21 00:01:07 -04:00
Brad King
35c7e237e7
Merge topic 'ci-linkcheck'
...
54e06c601d Help: Replace link with its http redirect
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8898
2023-10-20 08:43:04 -04:00
Ben Boeckel
ed45432571
cmNinjaTargetGenerator: do not order-depend on C++ module sources
...
C++ module sources should not be included by any other TUs, so their
presence cannot matter for order-only dependencies of the entire target.
Exclude them.
Update CMP0154 to take this into consideration and add tests to the
`CXXModules` suite (which already deals with module support detection).
2023-10-20 07:18:33 -04:00
Kitware Robot
6e6ba229cb
CMake Nightly Date Stamp
2023-10-20 00:01:07 -04:00
Ben Boeckel
0973cd6702
cmNinjaTargetGenerator: use the file set visibility API
2023-10-19 23:09:33 -04:00
Ben Boeckel
4625170925
cmFileSet: add a query for includeable file set types
2023-10-19 23:09:33 -04:00
Ben Boeckel
51f9d9f0a2
cmNinjaTargetGenerator: avoid traversing old outputs repeatedly
...
We actually only need to look at outputs just added to the vector, not
all outputs that have been detected so far.
2023-10-19 23:09:33 -04:00
Ben Boeckel
c2e949b700
cmGlobalNinjaGenerator: remove unnecessary virtual method
...
The implementation is the same and the called method used internally is
`virtual`, so just make the call non-virtual.
2023-10-19 23:00:17 -04:00
Ben Boeckel
1cfba13004
cmGlobalNinjaGenerator: fix lambda variable name typo
2023-10-19 23:00:16 -04:00
Ben Boeckel
f02c3c6181
cmFileCommand: combine string literals
2023-10-19 23:00:16 -04:00
Brad King
78bfcf47c8
Merge topic 'feat/cmake-project-module'
...
b37b912e8f CMAKE_PROJECT_INCLUDE: Allow to run module files
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8894
2023-10-19 09:34:59 -04:00
Brad King
43826dccc8
Merge topic 'ninja_compile_commands'
...
67ddca187c Ninja: Set TARGET_COMPILE_PDB correctly for compile_commands.json
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8897
2023-10-19 09:34:10 -04:00
Brad King
54e06c601d
Help: Replace link with its http redirect
2023-10-19 09:24:41 -04:00
Kitware Robot
d5e030fa67
CMake Nightly Date Stamp
2023-10-19 00:01:07 -04:00
Brad King
c2b28d4a66
CMake 3.28.0-rc2
2023-10-18 13:15:13 -04:00
Cristian Le
b37b912e8f
CMAKE_PROJECT_INCLUDE: Allow to run module files
...
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de >
2023-10-18 18:01:05 +02:00
Brad King
a3fbc255ff
Merge topic 'project-include-multiple'
...
704acca96b CMAKE_PROJECT_INCLUDE: Add support for including multiple files
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8884
2023-10-18 10:08:49 -04:00
Sebastian Theophil
67ddca187c
Ninja: Set TARGET_COMPILE_PDB correctly for compile_commands.json
...
Previously the Ninja target generator did not set the TARGET_COMPILE_PDB
before writing a compiler command to `compile_commands.json`.
Fixes : #25214
2023-10-18 09:55:28 -04:00
Brad King
aff7870172
Merge topic 'cxxmodules-vs-no-synthetic-targets'
...
17fd7fe2ae Tests/CXXModules: test Visual Studio synthetic target error
badb6ab120 VS: Explicitly disallow C++ modules provided by imported targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8895
2023-10-18 09:51:53 -04:00
Brad King
dc7bed55e6
Merge topic 'cxxmodules-vs-no-synthetic-targets' into release-3.28
...
17fd7fe2ae Tests/CXXModules: test Visual Studio synthetic target error
badb6ab120 VS: Explicitly disallow C++ modules provided by imported targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8895
2023-10-18 09:51:52 -04:00
Cristian Le
704acca96b
CMAKE_PROJECT_INCLUDE: Add support for including multiple files
...
Fixes : #25341
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de >
2023-10-18 13:39:55 +02:00
Kitware Robot
7144216f45
CMake Nightly Date Stamp
2023-10-18 00:01:06 -04:00
Ben Boeckel
badb6ab120
VS: Explicitly disallow C++ modules provided by imported targets
...
The `-ifcOnly` flag is understood by MSBuild, but there are unresolved
questions about how to integrate with with CMake's model.
See: #25328
2023-10-17 14:46:57 -04:00
Brad King
3f49c0369d
Merge topic 'update-libarchive'
...
d83c9ff24a Utilities: Update hard-coded try_compile results for libarchive 3.7.2
0ff572370f libarchive: Set build options the way we need for CMake
b281fd471a libarchive: Add cm3p prefixes on includes new to version 3.7.2
c4fec0edd6 Merge branch 'upstream-LibArchive' into update-libarchive
939e164ee5 LibArchive 2023-09-12 (6468cd1f)
1cc25f22ff libarchive: Update script to get 3.7.2
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8890
2023-10-17 10:23:47 -04:00
Brad King
dd78592ba1
Merge topic 'try_compile-alias-targets'
...
8f9f371668 try_compile: Add support for using ALIAS targets
9f8aa94192 Add missing `OUTPUT` in ExportImport test
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !8877
2023-10-17 10:22:54 -04:00
Brad King
c672e51bd3
Merge topic 'try_compile-linker-language'
...
0f37000304 try_{compile,run}: add LINKER_LANGUAGE option
dc0dbffb0f Tests: Remove redundant policy setting from RunCMake.try_{compile,run} cases
Acked-by: Kitware Robot <kwrobot@kitware.com >
Tested-by: buildbot <buildbot@kitware.com >
Merge-request: !8871
2023-10-17 10:18:56 -04:00
Brad King
46dc523d7e
Merge topic 'cxxmodules-export-fileset-info'
...
0f36156740 cxxmodules: include `INCLUDES DESTINATION` directories
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8886
2023-10-17 09:50:07 -04:00
Brad King
84ac583bc6
Merge topic 'cxxmodules-export-fileset-info' into release-3.28
...
0f36156740 cxxmodules: include `INCLUDES DESTINATION` directories
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: buildbot <buildbot@kitware.com >
Merge-request: !8886
2023-10-17 09:50:06 -04:00
Brad King
5c1daf8e24
Merge topic 'execute_process-output_file-directory'
...
35f031e3b2 execute_process(): Restore opening files relative to WORKING_DIRECTORY
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8883
2023-10-17 09:41:39 -04:00
Brad King
ec916350db
Merge topic 'execute_process-output_file-directory' into release-3.28
...
35f031e3b2 execute_process(): Restore opening files relative to WORKING_DIRECTORY
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8883
2023-10-17 09:41:38 -04:00
Kitware Robot
d3bcbdc5a2
CMake Nightly Date Stamp
2023-10-17 00:01:07 -04:00
Brad King
0ff572370f
libarchive: Set build options the way we need for CMake
2023-10-16 18:56:18 -04:00
Cristian Le
8f9f371668
try_compile: Add support for using ALIAS targets
...
Fixes : #25337
Signed-off-by: Cristian Le <cristian.le@mpsd.mpg.de >
2023-10-16 20:22:23 +02:00
Ben Boeckel
0f36156740
cxxmodules: include INCLUDES DESTINATION directories
...
These paths are added outside the normal property management mechanisms.
Shuttle the value to the C++ module export as needed.
Fixes : #25289
2023-10-16 13:57:54 -04:00
Kyle Edwards
35f031e3b2
execute_process(): Restore opening files relative to WORKING_DIRECTORY
...
Prior to 5420639a , execute_process() would open INPUT_FILE, OUTPUT_FILE,
and ERROR_FILE relative to the WORKING_DIRECTORY argument if it was
provided. Restore this behavior for backwards compatibility.
Fixes : #25338
2023-10-16 12:23:41 -04:00
scivision
0f37000304
try_{compile,run}: add LINKER_LANGUAGE option
...
Fixes : #25326
2023-10-16 11:30:17 -04:00
Brad King
fceeaff949
Merge topic 'linker-user-selection'
...
96a953b1ed Add options to specify linker tool
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8861
2023-10-16 10:39:51 -04:00
Brad King
5dce52e417
Merge topic 'revert-autogen-exe-per-config'
...
c074f5c81e Autogen: Revert "AUTO*_EXECUTABLE: add support for per-config values"
06a9b25b17 Tests: Revert "NinjaMultiConfig: Update tests for the new dependency change"
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !8878
2023-10-16 10:35:59 -04:00
Kitware Robot
4fd3397b6a
CMake Nightly Date Stamp
2023-10-16 00:02:05 -04:00
Kitware Robot
734a009dcf
CMake Nightly Date Stamp
2023-10-15 00:01:05 -04:00
Kitware Robot
0506d1d382
CMake Nightly Date Stamp
2023-10-14 00:01:19 -04:00
Orkun Tokdemir
c074f5c81e
Autogen: Revert "AUTO*_EXECUTABLE: add support for per-config values"
...
Changing the `timestamp` file to `timestamp_$<CONFIG>` causes some user
projects to break when using Qt versions older than 6.6.
Revert commit fddd0f0443 (Autogen: AUTO*_EXECUTABLE: add support for
per-config values, 2023-06-14, v3.28.0-rc1~96^2~1) pending further
investigation.
Issue: #20074
2023-10-13 14:16:26 -04:00
Marc Chevrier
96a953b1ed
Add options to specify linker tool
...
Offer the capability, through variable `CMAKE_LINKER_TYPE`, as well as
the target property `LINKER_TYPE` to specify which linker must be used.
The implementation of this capability is specified by variables specific
to the language and linker type: `CMAKE_<LANG>_USING_LINKER_<TYPE>`.
Some definitions are provided as part of `CMake`.
For example, to select the `LLVM` linker rather than the standard one,
the type `LLD` should be specified through the variable `CMAKE_LINKER_TYPE`.
And, on `Apple`, `Linux` and some environments on `Windows`, the variable
`CMAKE_<LANG>_USING_LINKER_LLD` has value `-fuse-ld=lld`. And for `Windows`
environments based on `MSVC`, where the linker is used directly, the tool
`lld-link.exe` will be used rather than `link.exe`.
Fixes : #19174 , #24254 , #24990
2023-10-13 11:52:35 +02:00
Kitware Robot
ee5f31ba72
CMake Nightly Date Stamp
2023-10-13 00:01:16 -04:00
Kitware Robot
bf5185ead7
CMake Nightly Date Stamp
2023-10-12 00:01:13 -04:00
Brad King
38643edc2d
CMake 3.28.0-rc1
2023-10-11 14:33:33 -04:00