Commit Graph

30195 Commits

Author SHA1 Message Date
Ben Boeckel cdfc4e3195 clang-tidy: fix readability-qualified-auto warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel 808b17b120 clang-tidy: fix readability-make-member-function-const warnings 2021-01-27 08:45:45 -05:00
Ben Boeckel 4470eb5179 clang-tidy: fix performance-trivially-destructible warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel 4f396e6528 clang-tidy: fix performance-no-automatic-move warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel 3a0d40bf8c clang-tidy: fix bugprone-suspicious-include warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel a0610cf9e9 clang-tidy: fix bugprone-signed-char-misuse warnings 2021-01-27 08:45:44 -05:00
Ben Boeckel c826461d9c clang-tidy: fix bugprone-reserved-identifier warnings 2021-01-27 08:45:44 -05:00
Kitware Robot 675d81be6c CMake Nightly Date Stamp 2021-01-27 00:01:18 -05:00
Brad King 1380e611e1 Merge topic 'nmc-cache-targets'
ccbedb80e4 Ninja Multi-Config: Restore rebuild_cache and edit_cache targets
6fdbe9201f cmNinjaUtilityTargetGenerator: Remove leftover development comment

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5740
2021-01-26 09:09:18 -05:00
Brad King cad804e2c4 Merge topic 'update-kwsys'
1bd1f96f3f Merge branch 'upstream-KWSys' into update-kwsys
4faaa079e3 KWSys 2021-01-25 (10e36d47)

Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: Martin Storsjö <martin@martin.st>
Merge-request: !5736
2021-01-26 09:01:28 -05:00
Brad King a5124f6bad Merge topic 'reproducible-unity-id'
ee9da76972 Unity: Generate reproducible unity IDs for anonymous namespaces

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5727
2021-01-26 09:00:28 -05:00
Kitware Robot 6b50138ae6 CMake Nightly Date Stamp 2021-01-26 00:01:10 -05:00
Brad King ccbedb80e4 Ninja Multi-Config: Restore rebuild_cache and edit_cache targets
Since commit dcf9f4d2f7 (Ninja Multi-Config: Add support for
cross-config custom commands, 2020-12-09) we were not generating these
targets.  Restore them and add a test.

Fixes: #21722
2021-01-25 15:22:53 -05:00
Brad King 6fdbe9201f cmNinjaUtilityTargetGenerator: Remove leftover development comment 2021-01-25 15:11:48 -05:00
Brad King 1bd1f96f3f Merge branch 'upstream-KWSys' into update-kwsys
# By KWSys Upstream
* upstream-KWSys:
  KWSys 2021-01-25 (10e36d47)
2021-01-25 10:06:13 -05:00
Kitware Robot 902f0c59fd CMake Nightly Date Stamp 2021-01-25 00:01:30 -05:00
Kitware Robot 1bfe5102b2 CMake Nightly Date Stamp 2021-01-24 00:01:08 -05:00
Kitware Robot 0bfb0edc8e CMake Nightly Date Stamp 2021-01-23 00:01:12 -05:00
Craig Scott ee9da76972 Unity: Generate reproducible unity IDs for anonymous namespaces
Fixes: #21564
2021-01-23 07:14:05 +11:00
Brad King 5a1b257fe7 Merge topic 'msvc-arm64ec-platform-support'
4ea3a88625 MSVC: Add support for targeting ARM64EC

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5708
2021-01-22 08:38:21 -05:00
Kitware Robot 664038ab4f CMake Nightly Date Stamp 2021-01-22 00:01:14 -05:00
Brad King fddbb7db4b Merge topic 'vs-sdk-selection'
1e67482daf VS: Generalize Win10 max SDK version to all VS generators

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5721
2021-01-21 09:18:31 -05:00
Brad King 6bf23b2755 Merge topic 'macos-include-weak-dependencies'
7e615a540e file(GET_RUNTIME_DEPENDENCIES): Fix weak macOS libraries not detected
f2d92b983b GetPrerequisites: Include weak macOS dependencies

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5703
2021-01-21 09:16:37 -05:00
Kitware Robot d1549824c9 CMake Nightly Date Stamp 2021-01-21 00:01:13 -05:00
Moyo Okeremi 😊 4ea3a88625 MSVC: Add support for targeting ARM64EC 2021-01-20 16:43:35 -08:00
jonathan molinatto 1e67482daf VS: Generalize Win10 max SDK version to all VS generators
The `CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION_MAXIMUM` variable added in
CMake 3.19 by commit ba497111f6 (VS: Add option for custom Win10 SDK
version maximum, 2020-08-20, v3.19.0-rc1~262^2) was documented as if it
worked for all generators but implemented only to override CMake's
builtin default for the VS 2015 max SDK version.  Generalize the
variable to set a custom max SDK version for later VS versions too.

Fixes: #21720
2021-01-20 14:46:34 -05:00
Brad King 063f7127d1 Merge topic 'ninja-custom_command-depfile'
b5c2163293 Ninja: add_custom_command(DEPFILE): Ensure dependencies consistency

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5710
2021-01-20 11:23:13 -05:00
Bianca van Schaik 7e615a540e file(GET_RUNTIME_DEPENDENCIES): Fix weak macOS libraries not detected
Starting with Clang 12, `otool -l` reports `LC_LOAD_WEAK_DYLIB` instead
of `LC_LOAD_DYLIB` for weakly linked libraries.  Update the
implementation of `file(GET_RUNTIME_DEPENDENCIES)` to recognize these.

Fixes: #21684
2021-01-20 10:26:54 -05:00
Brad King 8809a742be Merge topic 'export-copy-if-different'
51acae534a install(EXPORT): Set copy-if-different on install export config files

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5717
2021-01-20 10:22:32 -05:00
Brad King 4c6d433116 Merge topic 'doc-genex'
c2dc7e0f53 Help: Convert genex documentation to sphinx domain objects
778321beb4 Help: Remove extra blank line from cmake-generator-expressions(7)
7d498d6b43 Utilities/Sphinx: Add role and directive for 'genex' in CMake domain
cc1f53351c Help/dev: Mention 'cpack_gen' domain object in CMake Documentation Guide
954a9e9893 Help/dev: Mention 'envvar' domain object in CMake Documentation Guide
621ba5e1f2 cmRST: Add support for 'envvar' directive

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5715
2021-01-20 10:18:04 -05:00
Kitware Robot 4c28f27777 CMake Nightly Date Stamp 2021-01-20 00:01:12 -05:00
Daan De Meyer 51acae534a install(EXPORT): Set copy-if-different on install export config files
Avoid reinstalling the per-config export install files if the
contents didn't change after a configure.
2021-01-19 09:59:19 -05:00
Brad King 180666f586 Merge topic 'CMake-cross-compiling'
6cee4c6a8b Restore support for cross-compiling CMake itself

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5713
2021-01-19 09:06:53 -05:00
Marc Chevrier b5c2163293 Ninja: add_custom_command(DEPFILE): Ensure dependencies consistency
Fixes: #21694
2021-01-19 13:17:14 +01:00
Kitware Robot 2740cc458b CMake Nightly Date Stamp 2021-01-19 00:01:12 -05:00
Brad King 7d498d6b43 Utilities/Sphinx: Add role and directive for 'genex' in CMake domain
This enables cross-reference syntax for CMake generator expressions:

    :genex:`SOME_GENEX`
    :genex:`$<SOME_GENEX>`
    :genex:`$<SOME_GENEX:...>`

and definition of CMake generator expressions via a directive:

    .. genex:: SOME_GENEX
    .. genex:: $<SOME_GENEX>
    .. genex:: $<SOME_GENEX:...>

It also adds generator expressions defined by the directive and by
`Help/genex/SOME_GENEX.rst` documents to the index.
2021-01-18 12:35:41 -05:00
Brad King 621ba5e1f2 cmRST: Add support for 'envvar' directive
This was accidentally left out of commit 8acf46caf1 (Utilities/Sphinx:
Add role and directive for 'envvar' in CMake domain, 2018-04-19,
v3.12.0-rc1~200^2~1).
2021-01-18 12:35:40 -05:00
Marc Chevrier 6cee4c6a8b Restore support for cross-compiling CMake itself
In commit eb583b0a66 (cmake_path command: path management, 2020-07-23,
v3.19.0-rc1~216^2~1) we added a `try_run`.  In cross-compilation mode,
C++ features tests must avoid running tests if there is no emulator
defined.
2021-01-18 12:23:23 -05:00
Brad King 80ea78da0d Merge topic 'cmake-gui-improvements'
79d00c629f CMake GUI: Fix rendering issue
15e8072859 CMake GUI: Use system icons when available
8aebd159fc CMake GUI: Don't use QToolButton
0bc327a79c CMake GUI: Improve signal specification

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5706
2021-01-18 11:18:37 -05:00
Brad King cbcb507227 Merge topic 'issue-17794'
8f33674491 cpack(DEB): Issue warning if custom script for control file is missing

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5705
2021-01-18 11:16:44 -05:00
Kitware Robot fe3c4db2ea CMake Nightly Date Stamp 2021-01-18 00:01:16 -05:00
Kitware Robot 5b9f7a5f28 CMake Nightly Date Stamp 2021-01-17 00:01:07 -05:00
Kitware Robot 12a88d5d27 CMake Nightly Date Stamp 2021-01-16 00:01:11 -05:00
Matthew Woehlke 79d00c629f CMake GUI: Fix rendering issue
Remove style sheet from a combo box in the GUI. I have no idea why this
was being set, but it causes a render glitch. Also, use a more sensible
size policy on the same widget.
2021-01-15 11:43:34 -05:00
Matthew Woehlke 15e8072859 CMake GUI: Use system icons when available
Modify GUI to use system (theme) icons when available. This may only
affect builds on Linux platforms when using the system-provided Qt, but
will improve visual consistency with e.g. okay/cancel buttons which are
also using the system/theme icons. This also means that the GUI will
look slightly more "native" on Linux.
2021-01-15 11:43:29 -05:00
Matthew Woehlke 8aebd159fc CMake GUI: Don't use QToolButton
Replace QToolButton instances with QPushButton. QToolButton is only
meant to be used on tool bars and some other special situations. Worse,
we had a mix of QToolButton and QPushButton for things that clearly
should be using the same widget. This will improve visual consistency
and may fix some rendering issues.
2021-01-15 11:24:16 -05:00
Matthew Woehlke 0bc327a79c CMake GUI: Improve signal specification
Don't use subclasses to connect to QAbstractButton::clicked. This is
slightly dodgy, but of more immediate importance, tweaking it will allow
us to change the widget type of some QToolButton instances that should
be QPushButton.
2021-01-15 11:21:07 -05:00
Asit Dhal 8f33674491 cpack(DEB): Issue warning if custom script for control file is missing
Fixes: #17794
2021-01-15 16:41:37 +01:00
Brad King 2e792b6ec2 Merge topic 'sanitizers_save_memcheck_files'
54866346de CTest: Save sanitizer output files after test execution

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5698
2021-01-15 10:28:52 -05:00
Marc Chevrier 50b8dc8735 Merge topic 'cmake_path-stabilization'
76f0bcdfb6 cmake_path: various updates

Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !5695
2021-01-15 05:47:02 -05:00