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
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
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
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
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
Kitware Robot
86b2457e92
CMake Nightly Date Stamp
2021-04-22 00:01:07 -04: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
Brad King
bd8cc6d603
Merge branch 'upstream-KWIML' into update-kwiml
...
# By KWIML Upstream
* upstream-KWIML:
KWIML 2021-04-21 (49d91529)
2021-04-21 10:55:02 -04:00
KWIML Upstream
873dbc52e9
KWIML 2021-04-21 (49d91529)
...
Code extracted from:
https://gitlab.kitware.com/utils/kwiml.git
at commit 49d9152941311c05d281b1f927368b1efbb33a01 (master).
Upstream Shortlog
-----------------
Xiaotian Wu (1):
49d91529 abi.h: Add LoongArch64 support
2021-04-21 10:55:02 -04:00
Brad King
02fbe4083c
Merge topic 'cmake-timestamp-error'
...
835896e985 cmake: Improve error message when failing to update generation timestamp
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6021
2021-04-21 10:46:18 -04:00
Brad King
835896e985
cmake: Improve error message when failing to update generation timestamp
...
Include the underlying system error description.
Issue: #21571 , #22086
2021-04-21 10:45:16 -04:00
Brad King
6f7ab69026
Merge topic 'better_explain_policy_value'
...
b94bf12a31 Help: cmake_minimum_required specify max is only for policies
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6023
2021-04-21 10:45:11 -04:00
Brad King
52823d035b
Merge topic 'use_set_target_properties_in_cuda_arch_docs'
...
e4ff2b51b9 Help: Demonstrate using set_target_properties with CUDA architectures
Acked-by: Kitware Robot <kwrobot@kitware.com >
Reviewed-by: Raul Tambre <raul@tambre.ee >
Merge-request: !6022
2021-04-21 10:44:28 -04:00
Brad King
c44066f3b0
Merge topic 'nvhpc-warnings'
...
46d4c8e4df CTestCustom: Ignore warning from FD_ZERO macro on NVHPC
408e6d6185 Utilities: Suppress warnings in third-party code with NVHPC
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6019
2021-04-21 10:43:33 -04:00
Brad King
e9d37efd28
Merge branch 'release-3.20'
2021-04-21 10:42:17 -04:00
Brad King
5a8b37e53b
Merge topic 'autogen-clear-early-source-cache'
...
b84f1e6159 Autogen: Restore mocs_compilation in OBJECT libraries
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6024
2021-04-21 10:42:17 -04:00
Brad King
b0f203f133
Merge topic 'autogen-clear-early-source-cache' into release-3.20
...
b84f1e6159 Autogen: Restore mocs_compilation in OBJECT libraries
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6024
2021-04-21 10:42:16 -04:00
Brad King
11c0bfff89
VS: Generalize CSharp /langversion flag mapping
...
Map the `/langversion:` flag followed by any value to a `LangVersion`
element with the specified value in the `.csproj` file.
Fixes : #22089
2021-04-21 10:18:07 -04:00
Kitware Robot
57872e6d44
CMake Nightly Date Stamp
2021-04-21 00:01:08 -04:00
friendlyanon
71cbddf83a
cmake(1): Change wording for fields in presets
...
The placement of the word "optionally" implied that the fields mentioned
before are not optional, which is not the case starting from version 3
of the presets.
2021-04-21 03:22:01 +02:00
Alexander Pivovarov
dfb47335da
Tutorial: Step12 install MathFunctionsConfigVersion.cmake
2021-04-20 13:43:13 -07:00
Brad King
b84f1e6159
Autogen: Restore mocs_compilation in OBJECT libraries
...
Since commit f65f20938c (Autogen: Avoid processing CSharp targets,
2020-11-12, v3.20.0-rc1~301^2) we collect all sources for a target
earlier than previously. Clear the sources cache so that it will be
re-computed later after AUTOGEN processing.
Fixes : #22085
2021-04-20 16:04:08 -04:00
Robert Maynard
b94bf12a31
Help: cmake_minimum_required specify max is only for policies
...
Make it even clearer that for the signature `<version>...<version>` that
the second value is only used for policies, and is not a clamp range
of supported CMake versions.
2021-04-20 13:50:42 -04:00
Robert Maynard
e4ff2b51b9
Help: Demonstrate using set_target_properties with CUDA architectures
...
A common anti-pattern is to copy from the `CUDA_ARCHITECTURES` documentation.
If at any point the user tries to simplify by changin `set_property` to `set_target_properties` the code breaks.
To better train users, provide and example of how to set multiple
CUDA architectures with `set_target_properties`.
2021-04-20 13:25:53 -04:00
Brad King
46d4c8e4df
CTestCustom: Ignore warning from FD_ZERO macro on NVHPC
2021-04-20 11:47:59 -04:00
Brad King
408e6d6185
Utilities: Suppress warnings in third-party code with NVHPC
2021-04-20 11:44:25 -04:00
Brad King
63ffe21036
Merge topic 'update-kwsys'
...
b5cb26e287 Merge branch 'upstream-KWSys' into update-kwsys
d98342d868 KWSys 2021-04-19 (d6139c66)
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6018
2021-04-20 10:00:33 -04:00
Brad King
4c0d69e813
Merge topic 'Xcode-add_custom_command-DEPFILE'
...
253aff6c94 Xcode: Add support of DEPFILE for add_custom_command, part 2
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6015
2021-04-20 09:59:53 -04:00
Brad King
6d30975a9e
Merge branch 'release-3.20'
2021-04-20 09:58:53 -04:00
Brad King
c6fa8cd3f2
Merge topic 'doc-if-IS_ABSOLUTE'
...
6234afdff4 Help: Document special cases for if(IS_ABSOLUTE)
789307b02f Help: Behavior of file(TO_NATIVE_PATH) depends on the host platform
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6016
2021-04-20 09:58:53 -04:00
Brad King
b0be93c5c7
Merge topic 'doc-if-IS_ABSOLUTE' into release-3.20
...
6234afdff4 Help: Document special cases for if(IS_ABSOLUTE)
789307b02f Help: Behavior of file(TO_NATIVE_PATH) depends on the host platform
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6016
2021-04-20 09:58:51 -04:00
Kitware Robot
e1896d9c54
CMake Nightly Date Stamp
2021-04-20 00:01:09 -04:00
Brad King
b5cb26e287
Merge branch 'upstream-KWSys' into update-kwsys
...
# By KWSys Upstream
* upstream-KWSys:
KWSys 2021-04-19 (d6139c66)
2021-04-19 09:46:56 -04:00
KWSys Upstream
d98342d868
KWSys 2021-04-19 (d6139c66)
...
Code extracted from:
https://gitlab.kitware.com/utils/kwsys.git
at commit d6139c66c8760552ab6bc4a08401ae8105217469 (master).
Upstream Shortlog
-----------------
Orgad Shaneh (3):
17f4af9b SystemTools: Use octal base for error messages in permission test
f00dd83e SystemTools: Avoid unnecessary assumption of working directory in test case
5b941f33 SystemTools: Adapt permissions test to MSYS
2021-04-19 09:46:55 -04:00
Brad King
995be1097c
Merge topic 'tests-clang-analyzer'
...
ae2c24b0ba Tests: Fix warning clang-analyzer-cplusplus.NewDeleteLeaks
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !6010
2021-04-19 09:45:40 -04:00
Brad King
0c5ac41dbb
Merge branch 'release-3.20'
2021-04-19 09:44:51 -04:00
Brad King
f6ea1b59e1
Merge topic 'cxxprefix'
...
4c741d945a BinUtils: Restore toolchain prefix detection from compiler name 'c++'
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Thomas Bernard <thomas@famillebernardgouriou.fr >
Merge-request: !6011
2021-04-19 09:44:51 -04:00