Deniz Bahadir
cd33bfcad5
add_custom_command: Properly recognize if sources depend on config
...
Fixes : #21349
2020-10-22 23:03:05 +02:00
Kyle Edwards
609122007d
Merge topic 'cmake-presets-invalid-macro' into release-3.19
...
638557cbfe CMakePresets.json: Properly report macro expansion errors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5397
2020-10-22 11:05:09 -04:00
Kyle Edwards
6af1185bb4
Merge topic 'cmake-presets-boolean-cache' into release-3.19
...
920d180047 CMakePresets.json: Allow boolean for cache variable value
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5398
2020-10-22 11:04:18 -04:00
Kyle Edwards
920d180047
CMakePresets.json: Allow boolean for cache variable value
...
Fixes : #21327
2020-10-21 10:37:08 -04:00
Kyle Edwards
638557cbfe
CMakePresets.json: Properly report macro expansion errors
...
Make a distinction between strings which simply use the
$vendor{<...>} macro, which is valid but makes it unusable by CMake,
and strings which actually contain invalid macro expansions.
Fixes : #21308
2020-10-21 09:20:52 -04:00
Kyle Edwards
ec3b3d2c2f
Merge topic 'cmakepresets-schema' into release-3.19
...
21bc2fd945 CI: Install jsonschema for schema testing
e3bce8edf4 Tests: Add JSON schema validation to CMakePresets.json tests
0307f7c980 Help: Add JSON schema for CMakePresets.json
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5366
2020-10-21 09:15:29 -04:00
Brad King
e59c8f548d
Merge topic 'ci-win-python' into release-3.19
...
8f7fef629b ci: add Python to PATH on Windows
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !5403
2020-10-20 15:59:20 -04:00
Brad King
8f7fef629b
ci: add Python to PATH on Windows
...
Our test suite searches for a Python interpreter to perform some extra
checks. Our CI base images for Linux have Python available. Update our
Windows jobs to provide a Python interpreter for our test suite to find
consistently between the build and test steps.
2020-10-20 15:11:12 -04:00
Kyle Edwards
21bc2fd945
CI: Install jsonschema for schema testing
2020-10-20 12:18:10 -04:00
Kyle Edwards
e3bce8edf4
Tests: Add JSON schema validation to CMakePresets.json tests
2020-10-20 12:07:09 -04:00
Ben McMorran
0307f7c980
Help: Add JSON schema for CMakePresets.json
2020-10-20 12:07:09 -04:00
Kyle Edwards
81c88bb261
Merge topic 'cmake-presets-doc-move' into release-3.19
...
4a123fc28c Help: Clarify purpose of warnings and errors
6c74bcfc20 Help: Make architecture and toolset descriptions generic
45766789a0 Help: Add inheritance to CMakePresets.json example
88c9d6f6eb Help: Add documentation for debug field
efab856008 Help: Show environment field
2208db114c Help: Show multiple ways of doing cacheVariables
d30f85193f Help: Move vendor field into example
b9c8c57860 Help: s/unusedVars/unusedCli/
...
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5373
2020-10-20 11:59:54 -04:00
Brad King
bb4e2f3f9a
Merge topic 'find_package-check-dir' into release-3.19
...
0356b81525 find_package: Fix regression in searching root prefix
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5396
2020-10-20 09:38:17 -04:00
Brad King
0356b81525
find_package: Fix regression in searching root prefix
...
Fix the check added by commit 2ff1693066 (find_package: avoid showing
files as directories when searching config files, 2020-09-30,
v3.19.0-rc1~67^2) to avoid skipping the root prefix `/`.
Fixes : #21324
2020-10-19 11:08:49 -04:00
Kyle Edwards
4a123fc28c
Help: Clarify purpose of warnings and errors
2020-10-19 10:29:19 -04:00
Kyle Edwards
6c74bcfc20
Help: Make architecture and toolset descriptions generic
2020-10-19 10:29:19 -04:00
Kyle Edwards
45766789a0
Help: Add inheritance to CMakePresets.json example
2020-10-19 10:29:19 -04:00
Brad King
e61d872839
Merge topic 'FindPython-support-version-3.10' into release-3.19
...
23cd98a66a FindPython: Add support of version 3.10
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5383
2020-10-19 10:28:00 -04:00
Brad King
f4e6dfe55d
Merge topic 'separate_arguments-no-args' into release-3.19
...
747f80fe82 separate_arguments: Fix crash on *_COMMAND with no arguments
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5382
2020-10-19 10:26:30 -04:00
Kyle Edwards
88c9d6f6eb
Help: Add documentation for debug field
...
Oops!
2020-10-19 10:25:57 -04:00
Kyle Edwards
efab856008
Help: Show environment field
2020-10-19 10:25:57 -04:00
Kyle Edwards
2208db114c
Help: Show multiple ways of doing cacheVariables
...
This demonstrates both the simple string and the complex object,
and ensures that they get automated testing.
2020-10-19 10:25:57 -04:00
Kyle Edwards
d30f85193f
Help: Move vendor field into example
...
This ensures that the vendor field gets automated testing from the
example.
2020-10-19 10:25:57 -04:00
Kyle Edwards
b9c8c57860
Help: s/unusedVars/unusedCli/
...
This was a mistake in the documentation.
Fixes : #21303
2020-10-19 10:25:57 -04:00
Kyle Edwards
c436aaaad1
Help: Move CMakePresets.json documentation into a separate file
2020-10-19 10:25:57 -04:00
Brad King
ae1ca3034e
Merge topic 'doc-CMP0111' into release-3.19
...
5c3a91c808 CMP0111: Clarify that the new error is on a missing property setting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Alex Reinking <alex_reinking@berkeley.edu >
Merge-request: !5385
2020-10-19 10:23:50 -04:00
Brad King
d3d292aa7b
Merge topic 'sccache-macos-without-timeouts' into release-3.19
...
b0fe666846 ci: use a patched sccache on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !5394
2020-10-19 10:21:57 -04:00
Ben Boeckel
b0fe666846
ci: use a patched sccache on macOS
...
This version is much less likely to timeout on server startup since it
runs the expensive computation in a background thread.
See https://github.com/mozilla/sccache/pull/868 for the status.
2020-10-19 09:23:06 -04:00
Craig Scott
792863ac29
Merge topic 'cmake-gui-disable-presets' into release-3.19
...
d471406f0b CMake GUI: Disable preset fields instead of hiding them
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Brad King <brad.king@kitware.com >
Merge-request: !5374
2020-10-17 07:13:18 -04:00
Kyle Edwards
d471406f0b
CMake GUI: Disable preset fields instead of hiding them
2020-10-16 15:16:04 -04:00
Brad King
e1d124286a
Merge topic 'file-configure-angle-brackets' into release-3.19
...
06a9a3bdc3 file(CONFIGURE): Allow angle brackets in content
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5379
2020-10-16 09:23:42 -04:00
Brad King
0bdaa60e43
Merge topic 'CheckSource-Fortran' into release-3.19
...
c4c636cef5 Tests: Add cases for CheckSource{Compiles,Runs} bad arguments
1e519df025 CheckSource{Runs,Compiles}: Fix default Fortran source extension
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5378
2020-10-16 09:22:32 -04:00
Brad King
39b964272c
Merge topic 'iar-obj-declutter' into release-3.19
...
b357f78196 IAR: Use .o object file extension with IAR-Ilink toolchains
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5380
2020-10-16 09:21:19 -04:00
Brad King
a11ea1a9ee
Merge topic 'fix-refactor-generator-configs' into release-3.19
...
b9cb1d324d Fix regression in test/install/package configuration selection
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5381
2020-10-16 09:19:48 -04:00
Robert Bozzetto
747f80fe82
separate_arguments: Fix crash on *_COMMAND with no arguments
...
Fixes : #21320
2020-10-16 08:49:28 -04:00
Brad King
5c3a91c808
CMP0111: Clarify that the new error is on a missing property setting
...
The previous wording could be confused with the file missing on disk.
2020-10-16 08:26:00 -04:00
Marc Chevrier
23cd98a66a
FindPython: Add support of version 3.10
2020-10-16 11:36:53 +02:00
Felipe Torrezan
b357f78196
IAR: Use .o object file extension with IAR-Ilink toolchains
...
The compiler default extension for its objects is `.o`.
Prefer that over `.obj`.
2020-10-15 11:49:39 -04:00
Brad King
b9cb1d324d
Fix regression in test/install/package configuration selection
...
In commit 7a969fe21d (cmMakefile: Refactor API to better handle empty
config values, 2020-06-30, v3.19.0-rc1~567^2), calls to
`GetGeneratorConfigs` that pass `OnlyMultiConfig` only want to get any
configurations listed if the generator is multi-config. Fix the
implementation to actually do that.
Fixes : #21316
2020-10-15 10:53:09 -04:00
Brad King
c4c636cef5
Tests: Add cases for CheckSource{Compiles,Runs} bad arguments
2020-10-15 09:42:56 -04:00
Cristian Adam
06a9a3bdc3
file(CONFIGURE): Allow angle brackets in content
...
Fixes : #21306
2020-10-15 15:42:21 +02:00
Michael Hirsch
1e519df025
CheckSource{Runs,Compiles}: Fix default Fortran source extension
...
In commit 357e2ef429 (CheckSoureRuns: Add a unified way to check if a
source runs, 2020-09-14, v3.19.0-rc1~118^2), the default Fortran source
file extension was accidentally changed from `.F90` to `.F`. Fix that.
In commit 10ae907de0 (CheckSoureCompiles: Add a unified way to check if
a source compiles, 2020-09-14, v3.19.0-rc1~118^2~1), the default Fortran
source extension was correctly preserved as `.F`, but `.F90` is a better
default both for consistency and modern usage. Use that for direct
calls to the `check_source_compiles` macro. Update our original
`check_fortran_source_compiles` implementation to use `.F` by default
as it did before.
Fixes : #21307
2020-10-15 09:33:59 -04:00
Brad King
b1d9a25f35
Merge topic 'cmake-E-cat-binary' into release-3.19
...
f7a5f28318 cmake: Fix '-E cat' command for binary files on Windows
90b39a5209 cmConsoleBuf: Factor out cout/cerr console buffer management
f1fdd15863 clang-format: Fix include block order in ctest.cxx and cpack.cxx
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5364
2020-10-15 08:10:50 -04:00
Brad King
30643e21d4
Merge topic 'bootstrap-make-smake' into release-3.19
...
8e7ece1416 bootstrap: add smake as known make processors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5372
2020-10-14 15:45:09 -04:00
Brad King
a532268eef
Merge topic 'bootstrap-ninja-samu' into release-3.19
...
f0ac977d3c bootstrap: add samu as known ninja processors
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5371
2020-10-14 15:44:21 -04:00
Issam E. Maghni
8e7ece1416
bootstrap: add smake as known make processors
...
As found in “Modules/CMakeUnixFindMake.cmake”
2020-10-14 15:29:25 -04:00
Issam E. Maghni
f0ac977d3c
bootstrap: add samu as known ninja processors
...
As found in “Modules/CMakeNinjaFindMake.cmake”
2020-10-14 15:28:50 -04:00
Johnny Jazeix
f7a5f28318
cmake: Fix '-E cat' command for binary files on Windows
...
Reset `std::cout` to write in binary mode with no encoding conversions.
Co-Author: Brad King <brad.king@kitware.com >
Fixes : #21295
2020-10-14 12:08:07 -04:00
Brad King
90b39a5209
cmConsoleBuf: Factor out cout/cerr console buffer management
2020-10-14 12:08:06 -04:00
Brad King
f1fdd15863
clang-format: Fix include block order in ctest.cxx and cpack.cxx
2020-10-14 12:06:50 -04:00