Commit Graph

33670 Commits

Author SHA1 Message Date
Brad King 536f35c4f1 Merge topic 'vs9-deprecate'
d7f440c5db Deprecate Visual Studio 9 2008 generator

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8181
2023-02-09 10:14:10 -05:00
Brad King b7a41d9b21 Merge topic 'target-with-cxxmodule-filesets'
4b38d7d100 cmGeneratorTarget: `INTERFACE` targets with C++ modules are also "in"

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8179
2023-02-09 10:13:03 -05:00
Brad King 29476e275b Merge topic 'stop_parsing_after_first_script_arg'
f9e8a067c2 cmake: Stop parsing after `--` when detecting script mode

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8186
2023-02-09 09:58:14 -05:00
Kitware Robot 034f658c34 CMake Nightly Date Stamp 2023-02-09 00:01:15 -05:00
Robert Maynard f9e8a067c2 cmake: Stop parsing after -- when detecting script mode
The fix in commit 08aa516880 (cmake: Stop parsing after `--` when
detecting script mode, 2022-12-06, v3.26.0-rc1~216^2) only corrected the
case where `-P -- -P <arg>` occurred and not `-P -- -P -<other>`.

Fixes: #24220
2023-02-08 17:21:10 -05:00
Ben Boeckel 4b38d7d100 cmGeneratorTarget: INTERFACE targets with C++ modules are also "in"
`INTERFACE` targets with C++ modules are basically BMI-only modules. It
is unknown if they will be useful directly (due to ODR of the `module
M;` initializers needing to live in some specific object file). However,
they will be used to attach BMI-only compilations of `IMPORTED` C++
modules.
2023-02-08 13:00:45 -05:00
Brad King d7f440c5db Deprecate Visual Studio 9 2008 generator
Update documentation to mark the generator deprecated.  Add a warning at
the end of generation plus an option to turn off the warning.
2023-02-08 11:49:27 -05:00
Brad King 507dcaf563 Merge topic 'ctest-remove-cmake-intdir'
db95afce19 Tests/OutDir: Remove stale cache entry on multi-config generators
c6134ca6c7 CTest: Remove usages of CMAKE_INTDIR

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8176
2023-02-08 11:46:39 -05:00
Brad King 398844667b Merge topic 'ninja-no-cleandead'
cc118ddd70 cmGlobalNinjaGenerator: Remove unused member

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8178
2023-02-08 11:41:29 -05:00
Brad King 70244ffb19 Merge topic 'update-kwsys'
0abeb3e394 Tests: Remove references to dropped KWSys SharedForward component
6819e080fa Merge branch 'upstream-KWSys' into update-kwsys
48fd1b3887 KWSys 2023-02-07 (db9470d4)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8175
2023-02-08 11:40:13 -05:00
Brad King 8a51dc6852 Merge topic 'automoc-message-typo'
d0f49327f9 AutoMoc: Fix verbose mode message

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8171
2023-02-08 11:39:02 -05:00
Kitware Robot 007ff68677 CMake Nightly Date Stamp 2023-02-08 00:01:17 -05:00
Brad King cc118ddd70 cmGlobalNinjaGenerator: Remove unused member
The `DisableCleandead` member was added by commit c5011399c5 (Ninja:
Avoid cleandead with dyndep bindings for Fortran module dependencies,
2020-11-10, v3.19.0~15^2) but has not been used since commit 1144d25094
(Merge branch 'backport-ninja-no-cleandead' into ninja-no-cleandead,
2020-12-14, v3.19.2~4^2).  Remove it.
2023-02-07 15:10:29 -05:00
Kyle Edwards c6134ca6c7 CTest: Remove usages of CMAKE_INTDIR
The configuration in which CMake/CTest itself is built should not
influence runtime path selection.
2023-02-07 11:10:47 -05:00
Joerg Bornemann d0f49327f9 AutoMoc: Fix verbose mode message
AutoMoc generates because moc settings changed, not uic.
2023-02-07 10:59:51 -05:00
Brad King 0abeb3e394 Tests: Remove references to dropped KWSys SharedForward component 2023-02-07 10:50:17 -05:00
Brad King 6819e080fa Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2023-02-07 (db9470d4)
2023-02-07 09:54:19 -05:00
Brad King 8c61f15cdc Merge topic 'avoid-cmake-cfg-intdir'
2b17b6da6a cmGlobalGenerator: Avoid referencing CMAKE_CFG_INTDIR
f34876561f Tests: Remove or silence instances of ${CMAKE_CFG_INTDIR}
78cf427157 RULE_LAUNCH_*: Add support for generator expressions
cabad8a37f ExternalProject: Always use $<CONFIG> for source files
62e8884d3f CTestTargets: Use $<CONFIG> instead of ${CMAKE_CFG_INTDIR}

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8169
2023-02-07 09:52:32 -05:00
Brad King 9bef06d0a5 Merge topic 'custom-command-policies'
480b363724 cmCustomCommand: Refactor custom command-specific policy values

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8168
2023-02-07 09:49:49 -05:00
Brad King 921d8c4d64 Merge topic 'cmCLI-string-cleanup'
af08f9dc55 cmComputeLinkInformation: use characters where possible
52ca45e485 cmComputeLinkInformation: combine string literals where possible
41da256b02 cmComputeLinkInformation: use `cmStrCat` where appropriate

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: Alex Turbov <i.zaufi@gmail.com>
Merge-request: !8160
2023-02-07 09:49:07 -05:00
Brad King 9492ca9a3f Merge topic 'KateImprovements'
e7f7bff4f5 Kate: improve the way the VCS-specific files are searched
96389b4cd3 Kate: add support for hg and fossil
4c32623f5f Help: fix typo in docs for set_property()
9a7612d2d0 Kate: make it possible to force a mode for the "files" entry
8a7aa2642b Help: add documentation for Kate-related variable

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8154
2023-02-07 09:48:23 -05:00
Brad King 20b6356cab Merge topic 'tinyfix'
835d50895a cmake.cxx: Fix lambda name typo

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: jcl xx <jonathan2dog@gmail.com>
Merge-request: !8167
2023-02-07 09:47:28 -05:00
Kitware Robot 448e9ab022 CMake Nightly Date Stamp 2023-02-07 00:01:11 -05:00
Kyle Edwards 480b363724 cmCustomCommand: Refactor custom command-specific policy values
Many custom commands are created by CMake itself rather than by
the user. These custom commands should always have their policies
set to NEW, and user-created custom commands should have their
policy values set only from the state snapshot. In addition, we
want to genericize the mechanism of recording a policy at the time
of custom command creation.

Add a CM_FOR_EACH_CUSTOM_COMMAND_POLICY macro to genericize
custom command policies. Use this to define all custom command
policies. Make all such policies NEW instead of WARN by default.
Remove individual policy modifier methods and add a single method
that records relevant values from a cmStateSnapshot. Remove the
no longer needed explicit policy settings from synthesized custom
commands.
2023-02-06 15:04:16 -05:00
Ben Boeckel af08f9dc55 cmComputeLinkInformation: use characters where possible 2023-02-06 13:41:00 -05:00
Ben Boeckel 52ca45e485 cmComputeLinkInformation: combine string literals where possible 2023-02-06 13:40:36 -05:00
Alexander Neundorf e7f7bff4f5 Kate: improve the way the VCS-specific files are searched
Before, CMake only checked for the .svn etc. directory only in
${CMAKE_SOURCE_DIR}, now it also goes the directories up to check
whether those VCS directories exist in one of the parent directories.
2023-02-06 10:23:03 -05:00
Alexander Neundorf 96389b4cd3 Kate: add support for hg and fossil
Both VCS are supported by kate nowadays.
2023-02-06 10:22:10 -05:00
Alexander Neundorf 9a7612d2d0 Kate: make it possible to force a mode for the "files" entry
By default, kate will try to autodetect whether the project is
a svn or git checkout or not.
In case this does not give a satisfying result, the user can now
set CMAKE_KATE_FILES_MODE to the mode he wants.
2023-02-06 10:21:19 -05:00
jcl xx 835d50895a cmake.cxx: Fix lambda name typo
Fix function name typo `ToolsetLamda` to `ToolsetLambda`.
2023-02-06 09:32:17 -05:00
Kitware Robot c7c6c5debf CMake Nightly Date Stamp 2023-02-06 00:02:29 -05:00
Kitware Robot 13b0c2d432 CMake Nightly Date Stamp 2023-02-05 00:01:10 -05:00
Kitware Robot 5c89f58f16 CMake Nightly Date Stamp 2023-02-04 00:01:14 -05:00
Ben Boeckel 41da256b02 cmComputeLinkInformation: use cmStrCat where appropriate 2023-02-03 15:54:50 -05:00
Kyle Edwards 2b17b6da6a cmGlobalGenerator: Avoid referencing CMAKE_CFG_INTDIR 2023-02-03 11:24:57 -05:00
Kyle Edwards 78cf427157 RULE_LAUNCH_*: Add support for generator expressions 2023-02-03 11:23:32 -05:00
Brad King 77610c6cf0 Merge topic 'ctest-timeout-junit'
6ef54e0272 CTest: add test failure reason to JUnit XML output

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8151
2023-02-03 10:07:52 -05:00
Brad King a1bee24812 Merge topic 'cmTarget-refactor-property-init'
dd968ca388 cmTarget: convert VS property settings to the new property lambda
b69fba7cd7 cmTarget: factor out `POSITION_INDEPENDENT_CODE` initialization
42575a660f cmTarget: factor out properties with targets with commands
f551f49a17 cmTarget: factor out properties for targets with exports
d1627118e7 cmTarget: factor out executable-requiring properties
f0ae00d727 cmTarget: factor out linkable normal library target properties
9f7a25a2c7 cmTarget: factor out non-executable normal target with artifact properties
ab2b967ce6 cmTarget: factor out normal targets with artifact properties
...

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8139
2023-02-03 10:05:24 -05:00
Brad King c3210aab46 Merge topic 'lang-linker-launcher-genex'
33e27f6ca6 <LANG>_LINKER_LAUNCHER: Allow generator expressions
84ada0b0c9 <LANG>_COMPILER_LAUNCHER: Expand subset of genexes that can be evaluated

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8152
2023-02-03 10:00:49 -05:00
Kitware Robot 82f61a20b4 CMake Nightly Date Stamp 2023-02-03 00:01:13 -05:00
Brad King 2a0c105cf0 CMake 3.26.0-rc1 2023-02-02 13:20:23 -05:00
Ben Boeckel dd968ca388 cmTarget: convert VS property settings to the new property lambda 2023-02-02 12:43:14 -05:00
Ben Boeckel b69fba7cd7 cmTarget: factor out POSITION_INDEPENDENT_CODE initialization
This property is initialized using the common framework, but then forced
on SHARED and MODULE targets, so just post-process the property in this
case.
2023-02-02 12:43:14 -05:00
Ben Boeckel 42575a660f cmTarget: factor out properties with targets with commands 2023-02-02 12:43:13 -05:00
Ben Boeckel f551f49a17 cmTarget: factor out properties for targets with exports 2023-02-02 12:43:13 -05:00
Ben Boeckel d1627118e7 cmTarget: factor out executable-requiring properties 2023-02-02 12:43:13 -05:00
Ben Boeckel f0ae00d727 cmTarget: factor out linkable normal library target properties 2023-02-02 12:43:13 -05:00
Ben Boeckel 9f7a25a2c7 cmTarget: factor out non-executable normal target with artifact properties 2023-02-02 12:43:13 -05:00
Ben Boeckel ab2b967ce6 cmTarget: factor out normal targets with artifact properties 2023-02-02 12:43:13 -05:00
Ben Boeckel c3dbbcef65 cmTarget: factor out normal non-imported target properties 2023-02-02 12:43:13 -05:00