Commit Graph

33692 Commits

Author SHA1 Message Date
Brad King e2ed34abf8 Merge topic 'ninja-custom-command-depends'
082ccd7530 add_custom_command: Add DEPENDS_EXPLICIT_ONLY option for Ninja

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !8198
2023-02-15 08:57:32 -05:00
Brad King efca640726 Merge topic 'nullptr'
7b0a629693 Source: use C++11 nullptr

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8207
2023-02-15 08:17:06 -05:00
Kitware Robot 03c811edfd CMake Nightly Date Stamp 2023-02-15 00:01:12 -05:00
scivision 7b0a629693 Source: use C++11 nullptr 2023-02-14 14:34:03 -05:00
Brad King 283432a1aa Merge topic 'ninja-collation-dependencies'
b6a5382217 Ninja: depend on language module information files directly
0ace6053e8 Ninja: track modmap dependencies properly
b215cbc07d Ninja: remove the modmap as an output of the scanner

Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !8197
2023-02-14 09:16:42 -05:00
Brad King 06e62ff5e8 Merge topic 'KateDontIncludeFilesInBuildDir'
8802b81b0d Kate: don't include files in the CMakeFiles/ dir in the project

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8196
2023-02-14 09:15:59 -05:00
Abdelmaged Khalifa 082ccd7530 add_custom_command: Add DEPENDS_EXPLICIT_ONLY option for Ninja
Add option `DEPENDS_EXPLICIT_ONLY` to `add_custom_command` to indicate
that implicit dependencies coming from users of the output are not
needed, and only consider dependencies explicitly specified in the
custom command.

Fixes: #17097
2023-02-14 08:56:59 -05:00
Kitware Robot df52b85b07 CMake Nightly Date Stamp 2023-02-14 00:01:11 -05:00
Alexander Neundorf 8802b81b0d Kate: don't include files in the CMakeFiles/ dir in the project
These files are generated by cmake, they shouldn't be in the project.
2023-02-13 22:36:47 +01:00
Brad King 93edb4d0c0 Merge topic 'deprecate-pre-3.5'
3a4791548d Deprecate compatibility with CMake versions older than 3.5
1edf138506 Tests/RunCMake: Update cmake_minimum_required versions
65a1c379ee Tests/CTestTest*: Update cmake_minimum_required versions
589e6fdcd1 Tests: Update cmake_minimum_required versions in a few tests
3092b14ed0 Tests: Teach RunCMake to optionally ignore policy version deprecation warnings

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Acked-by: scivision <michael@scivision.dev>
Merge-request: !8192
2023-02-13 09:08:23 -05:00
Kitware Robot 52f62cbffe CMake Nightly Date Stamp 2023-02-13 00:02:29 -05:00
Kitware Robot 323f5feb93 CMake Nightly Date Stamp 2023-02-12 00:01:15 -05:00
Brad King 3a4791548d Deprecate compatibility with CMake versions older than 3.5
Issue a deprecation warning on calls to `cmake_minimum_required` or
`cmake_policy` that set policies based on versions older than 3.5.
Note that the effective policy version includes `...<max>` treatment.
Update the check from commit 5845c218d7 (Deprecate compatibility with
CMake versions older than 2.8.12, 2020-06-12, v3.19.0-rc1~629^2).
2023-02-11 06:25:11 -05:00
Kitware Robot 48c69eeafe CMake Nightly Date Stamp 2023-02-11 00:01:12 -05:00
Ben Boeckel b6a5382217 Ninja: depend on language module information files directly
Now that `GetLinkedTargetDirectories` can get the exact dependencies,
use them to simplify the collation dependency graph.
2023-02-10 18:42:02 -05:00
Ben Boeckel 0ace6053e8 Ninja: track modmap dependencies properly
Mark modmaps as outputs of the collation step.
2023-02-10 18:03:15 -05:00
Ben Boeckel b215cbc07d Ninja: remove the modmap as an output of the scanner
It's actually an output of the collator.
2023-02-10 17:51:46 -05:00
Brad King 78299083d2 Merge topic 'cmake-gui-browse-manual-page'
b5383bc767 cmake-gui: Add optional filename argument to --browse-manual

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8190
2023-02-10 10:03:30 -05:00
Brad King f888d03c70 Merge topic 'update-kwsys'
9ef25b08e0 bootstrap: Update for KWSys removal of String.hxx
e66d42ef10 Merge branch 'upstream-KWSys' into update-kwsys
fa9b4e530f KWSys 2023-02-09 (3eea0b90)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: buildbot <buildbot@kitware.com>
Merge-request: !8188
2023-02-10 10:02:40 -05:00
Kitware Robot 917f675b9e CMake Nightly Date Stamp 2023-02-10 00:01:18 -05:00
Kyle Edwards b5383bc767 cmake-gui: Add optional filename argument to --browse-manual 2023-02-09 11:33:06 -05:00
Brad King e66d42ef10 Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2023-02-09 (3eea0b90)
2023-02-09 10:15:38 -05:00
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