Sergey Bronnikov
3f6ff4b5db
create_test_sourcelist: add test driver option to run all tests
...
New option `-A` passed to test binary allows to run all testcases at
once and prints a report in a standard format - TestAnythingProtocol v.13 [1].
Execution of test whose names will be passed after an option will be skipped.
Sample of output:
TAP version 13
1..6
ok 1 TestCryptoHash # 0.030000
ok 2 TestCryptoRand # 0.008000
not ok 3 TestCryptoCipher # 0.005000
ok 4 TestCryptoProtectData # 0.000000
cbPlainText: 21 cbCipherText: 32
PlainText: MySecretPassword123! (cbPlainText = 21, cbCipherText = 32)
Decrypted CipherText: MySecretPassword123!
ok 5 TestCryptoProtectMemory # 0.014000
ok 6 TestCryptoCertEnumCertificatesInStore # 0.000000
1. https://testanything.org/
Fixes : #19367
2021-04-28 09:28:25 -04:00
Brad King
a3aa5596a1
Tests: Isolate TestDriver build directories
2021-04-28 09:19:58 -04:00
Brad King
9d4a0f12fb
Merge topic 'SWIG'
...
e3e005dbd8 UseSWIG: use swig dependencies for Xcode generator
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6042
2021-04-26 11:35:22 -04:00
Brad King
395e1d458e
Merge topic 'xcode_app_extensions'
...
eb5e33ba47 Xcode: Add support for embedding app extensions
f62a2bf44f Tests: Factor out XcodeProject-Embed check function findAttribute()
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !5934
2021-04-26 11:34:38 -04:00
Brad King
3c1655936f
Merge topic 'lzma-threads'
...
c5c130e675 cmArchiveWrite: Consolidate multiple ways to set thread count
5380d858ff liblzma: Enable multi threaded stream encoding support
e9065e96dc Merge branch 'upstream-liblzma' into lzma-threads
ee909a8e8b liblzma 2020-03-17 (2327a461)
741b85b42b liblzma: Revise update script to get version 5.2.5
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !6014
2021-04-26 11:33:49 -04:00
Brad King
e69a328725
Merge topic 'autogen-moc-version'
...
5b0ea5874a AutoGen: Retrieve Qt version from moc as fallback
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6027
2021-04-26 11:31:54 -04:00
Brad King
6aabf2790c
Merge topic 'file-REAL_PATH-EXPAND_TILDE'
...
e4b793c614 file(REAL_PATH): add option EXPAND_TILDE
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Michael Hirsch <michael@scivision.dev >
Merge-request: !6033
2021-04-26 11:30:57 -04:00
Brad King
2fcd6a0242
Merge branch 'release-3.20'
2021-04-26 11:27:17 -04:00
Brad King
8bc64a0c40
Merge topic 'doc-compile-features-wcdh'
...
1f4ec3f4a7 Help: Do not recommend WCDH in cmake-compile-features(7)
1cc63f2cd5 Help: Fix typos in cmake-compile-features(7)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6037
2021-04-26 11:27:17 -04:00
Brad King
21c40086ee
Merge topic 'doc-compile-features-wcdh' into release-3.20
...
1f4ec3f4a7 Help: Do not recommend WCDH in cmake-compile-features(7)
1cc63f2cd5 Help: Fix typos in cmake-compile-features(7)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6037
2021-04-26 11:27:17 -04:00
Brad King
28cb4df402
Merge branch 'release-3.20'
2021-04-26 11:25:46 -04:00
Brad King
71087120b9
Merge topic 'ninja-multi-custom-target-post-build' into release-3.20
...
f8e2a74712 Ninja Multi-Config: Correctly generate POST_BUILD custom targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6040
2021-04-26 11:25:46 -04:00
Brad King
fcafd30a5e
Merge topic 'ninja-multi-custom-target-post-build'
...
f8e2a74712 Ninja Multi-Config: Correctly generate POST_BUILD custom targets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6040
2021-04-26 11:25:46 -04:00
Kitware Robot
eeb771e4d6
CMake Nightly Date Stamp
2021-04-26 00:01:07 -04:00
Kitware Robot
5f90a93fd7
CMake Nightly Date Stamp
2021-04-25 00:01:06 -04:00
Kitware Robot
88f5d4b24f
CMake Nightly Date Stamp
2021-04-24 00:01:09 -04:00
Marc Chevrier
e3e005dbd8
UseSWIG: use swig dependencies for Xcode generator
2021-04-23 17:09:12 +02:00
Brad King
1f4ec3f4a7
Help: Do not recommend WCDH in cmake-compile-features(7)
...
Since commit da7ad7997e (WriteCompilerDetectionHeader: Add policy to
remove module, 2020-12-04, v3.20.0-rc1~350^2), the WCDH module is
deprecated. Update the `cmake-compile-features(7)` manual section that
previously recommended WCDH to make such detection the project's
responsibility instead. Move the old content of the section over to the
WCDH module to preserve it.
2021-04-23 10:44:53 -04:00
Brad King
1cc63f2cd5
Help: Fix typos in cmake-compile-features(7)
2021-04-23 10:44:01 -04:00
Brad King
7de707cd7e
Merge topic 'cuda-host-compiler-windows'
...
625ef88a92 CUDA: Add CMAKE_CUDA_HOST_COMPILER support on Windows non-VS generators
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6030
2021-04-23 10:30:15 -04:00
Brad King
2c81e1175c
Merge topic 'test-RunCMake.CPack-errors'
...
c54c284de7 Tests: Improve RunCMake.CPack* test error formatting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6039
2021-04-23 10:23:53 -04:00
Brad King
0a48080aeb
Merge topic 'ExternalData-fail-reason'
...
298760661f ExternalData: Improve error message when we fail to create a file
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !6038
2021-04-23 10:22:51 -04:00
Joerg Bornemann
5b0ea5874a
AutoGen: Retrieve Qt version from moc as fallback
...
Consider the case where the find_package call for QtCore is wrapped in a
function call. Then AutoGen cannot determine the Qt version, because it
only looks at variables and directory properties. The former don't leave
the function scope and the latter are not set by default.
As a fallback, locate the moc executable via its target and call it with
the --version argument to determine the Qt version.
Issue: #22028
2021-04-23 10:49:07 +02:00
Kitware Robot
15a148dec6
CMake Nightly Date Stamp
2021-04-23 00:01:09 -04:00
Kyle Edwards
f8e2a74712
Ninja Multi-Config: Correctly generate POST_BUILD custom targets
...
Fixes : #22096
2021-04-22 15:51:53 -04:00
Nils Gladitz
c5c130e675
cmArchiveWrite: Consolidate multiple ways to set thread count
...
Merge use of SetFilterOption() into more abstract thread count
in cmArchiveWrite constructor.
libarchive defaulting of threads for threads == 0 seems to be
configuration dependent. Preemptively default thread count via
std::thread::hardware_concurrency().
Also allow negative values for the thread count in which case
the detected hardware concurrency is also used but the given
absolute thread count is used as an upper limit.
2021-04-22 15:40:13 -04:00
Nils Gladitz
5380d858ff
liblzma: Enable multi threaded stream encoding support
2021-04-22 15:40:06 -04:00
Brad King
e9065e96dc
Merge branch 'upstream-liblzma' into lzma-threads
...
* upstream-liblzma:
liblzma 2020-03-17 (2327a461)
2021-04-22 15:39:58 -04:00
liblzma upstream
ee909a8e8b
liblzma 2020-03-17 (2327a461)
...
Code extracted from:
https://git.tukaani.org/xz.git
at commit 2327a461e1afce862c22269b80d3517801103c1b (v5.2.5).
2021-04-22 15:39:31 -04:00
Brad King
c54c284de7
Tests: Improve RunCMake.CPack* test error formatting
...
Format message content for `message(FATAL_ERROR)`.
2021-04-22 13:54:56 -04:00
Brad King
298760661f
ExternalData: Improve error message when we fail to create a file
...
Report the underlying system error.
2021-04-22 13:06:11 -04:00
Nils Gladitz
741b85b42b
liblzma: Revise update script to get version 5.2.5
...
Keep files related to multi threaded stream encoding.
2021-04-22 17:46:10 +02:00
unknown
625ef88a92
CUDA: Add CMAKE_CUDA_HOST_COMPILER support on Windows non-VS generators
2021-04-22 11:40:46 -04:00
Brad King
3a7ee5358b
Merge topic 'blas-lapack-static'
...
051c3a0449 Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Intel MKL
f3f715688f Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Generic vendor
cb6889a09c FindLAPACK: Fix finding generic LAPACK with BLA_STATIC
193714d67d Find{BLAS,LAPACK}: Simplify search for static libraries
2e2db28e2f Find{BLAS,LAPACK}: Simplify check_function_exists state maintenance
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6036
2021-04-22 10:33:05 -04:00
Brad King
aa7d08e90a
Merge topic 'vs-asan'
...
1b37305b0f VS: Add support for ASAN -fsanitize=address flag
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6034
2021-04-22 10:28:47 -04:00
Brad King
74c3febf27
Merge topic 'tutorial_step12_version_install'
...
dfb47335da Tutorial: Step12 install MathFunctionsConfigVersion.cmake
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !6025
2021-04-22 10:27:57 -04:00
Brad King
3da68b95f0
Merge topic 'cmake-1-docs-for-presets'
...
71cbddf83a cmake(1): Change wording for fields in presets
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !6026
2021-04-22 10:27:06 -04:00
Brad King
37da981b72
Merge topic 'vs-csharp-langversion'
...
11c0bfff89 VS: Generalize CSharp /langversion flag mapping
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6031
2021-04-22 10:25:32 -04:00
Brad King
dd44a98bfe
Merge topic 'update-kwiml' into release-3.20
...
bd8cc6d603 Merge branch 'upstream-KWIML' into update-kwiml
873dbc52e9 KWIML 2021-04-21 (49d91529)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6032
2021-04-22 10:22:26 -04:00
Brad King
157c33681a
Merge branch 'release-3.20'
2021-04-22 10:22:26 -04:00
Brad King
b98d05c50b
Merge topic 'update-kwiml'
...
bd8cc6d603 Merge branch 'upstream-KWIML' into update-kwiml
873dbc52e9 KWIML 2021-04-21 (49d91529)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6032
2021-04-22 10:22:26 -04:00
Alexander Akhundzhanov
eb5e33ba47
Xcode: Add support for embedding app extensions
...
Co-Authored-By: Craig Scott <craig.scott@crascit.com >
2021-04-22 15:17:02 +10:00
Kitware Robot
86b2457e92
CMake Nightly Date Stamp
2021-04-22 00:01:07 -04:00
Marc Chevrier
e4b793c614
file(REAL_PATH): add option EXPAND_TILDE
...
This option enables the replacement of any leading tilde with the path
to the user's home directory.
2021-04-22 08:08:47 +10:00
Brad King
051c3a0449
Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Intel MKL
2021-04-21 14:41:54 -04:00
Brad King
f3f715688f
Find{BLAS,LAPACK}: Add test case covering BLA_STATIC with Generic vendor
2021-04-21 14:41:54 -04:00
Brad King
cb6889a09c
FindLAPACK: Fix finding generic LAPACK with BLA_STATIC
...
Fixes : #21071
2021-04-21 14:41:46 -04:00
Brad King
193714d67d
Find{BLAS,LAPACK}: Simplify search for static libraries
...
Now that `CHECK_{BLAS,LAPACK}_LIBRARIES` are functions, we can set
`CMAKE_FIND_LIBRARY_SUFFIXES` locally without affecting the global
state. This avoids the need for local state switching that was added in
commit 9ef82d95d8 (FindBLAS: Fix detection of OpenMP as dependency of
BLA_STATIC, 2021-04-07, v3.20.1~3^2), so remove that.
2021-04-21 14:23:17 -04:00
Brad King
2e2db28e2f
Find{BLAS,LAPACK}: Simplify check_function_exists state maintenance
...
Now that `CHECK_{BLAS,LAPACK}_LIBRARIES` are functions, we can set
`CMAKE_REQUIRED_QUIET` locally without affecting the global state.
2021-04-21 14:20:28 -04:00
oltolm
1b37305b0f
VS: Add support for ASAN -fsanitize=address flag
...
Map it to the `EnableASAN` element in `.vcxproj` files.
Fixes : #21081
2021-04-21 13:37:26 -04:00