Kyle Edwards
3e07995bdd
Merge topic 'FindPython-Fix-target-properties'
...
fe280e0cda FindPython*: Fix erroneous target properties setting
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Kyle Edwards <kyle.edwards@kitware.com >
Merge-request: !4154
2019-12-20 12:57:07 -05:00
Marc Chevrier
fe280e0cda
FindPython*: Fix erroneous target properties setting
...
Property IMPORTED_CONFIGURATIONS for targets Python*::Python
and Python*::Module is not correctly set.
2019-12-19 19:42:24 +01:00
Brad King
118f7efba9
Merge topic 'FindLAPACK-in-blas' into release-3.16
...
930f204b68 FindLAPACK: Fix support for LAPACK symbols inside BLAS libraries
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4144
2019-12-18 09:33:21 -05:00
Brad King
5b4921d19b
Merge topic 'FindLAPACK-in-blas'
...
930f204b68 FindLAPACK: Fix support for LAPACK symbols inside BLAS libraries
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4144
2019-12-18 09:33:21 -05:00
Brad King
62475f7da0
Merge topic 'FindBoost-1.72' into release-3.16
...
e51232b739 FindBoost: Add support for Boost 1.72
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4143
2019-12-18 09:32:41 -05:00
Brad King
5668428400
Merge topic 'FindBoost-1.72'
...
e51232b739 FindBoost: Add support for Boost 1.72
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4143
2019-12-18 09:32:41 -05:00
Brad King
930f204b68
FindLAPACK: Fix support for LAPACK symbols inside BLAS libraries
...
Fix the condition added by commit 68dcbeee01 (FindLAPACK: Test for
implicitly linked LAPACK libraries, 2019-06-11, v3.16.0-rc1~560^2) to
use BLAS libraries if they are sufficient with no dedicated LAPACK
libraries.
Fixes : #20099
2019-12-18 05:51:50 -05:00
Brad King
3289322e4f
Merge topic 'FindCUDAToolkit-module'
...
d484a3c4d8 FindCUDAToolkit: correct searches for Toolkit components
e2a5d8374f FindCUDAToolkit: Improve usage, library set, and tests
29560bf07b FindCUDAToolkit: Import targets for toolkit libraries
2c0ff263b4 FindCUDAToolkit: Add module to find the CUDA Toolkit
12d324e55d CUDA: Persist SIZEOF_VOID_P and PLATFORM_ABI
Acked-by: Kitware Robot <kwrobot@kitware.com >
Rejected-by: Brad King <brad.king@kitware.com >
Acked-by: Brad King <brad.king@kitware.com >
Merge-request: !4093
2019-12-17 11:13:50 -05:00
Brad King
7d69ab02ad
Merge topic 'FindProtobuf-no-protoc'
...
db0b740fd8 FindProtobuf: Do not verify protoc version if it is not found
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4121
2019-12-17 11:08:12 -05:00
Brad King
671ed5b123
Merge topic 'fat-ios'
...
a9b41195d2 Handle multi-arch sysroots on Apple platforms
372c89ea38 Refactor -arch and -isysroot code usage
7a44e16d7f Refactor SDK name to path into a function
777d364913 Use xcrun instead of xcodebuild for resolving SDK path
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4125
2019-12-17 11:07:09 -05:00
Brad King
e51232b739
FindBoost: Add support for Boost 1.72
...
Run `Utilities/Scripts/BoostScanDeps.cmake` with the Boost 1.72.0
sources to compute dependencies.
Fixes : #20100
2019-12-17 10:37:06 -05:00
Robert Maynard
d484a3c4d8
FindCUDAToolkit: correct searches for Toolkit components
2019-12-16 14:35:03 -05:00
Diego Pino Garcia
db0b740fd8
FindProtobuf: Do not verify protoc version if it is not found
2019-12-16 11:43:47 -05:00
Robert Maynard
e2a5d8374f
FindCUDAToolkit: Improve usage, library set, and tests
...
Refined the initial design of FindCUDAToolkit and improve it
by adding more library support, more toolkit information and
tests.
2019-12-16 11:15:12 -05:00
Stephen McDowell
29560bf07b
FindCUDAToolkit: Import targets for toolkit libraries
2019-12-16 10:31:43 -05:00
Stephen McDowell
2c0ff263b4
FindCUDAToolkit: Add module to find the CUDA Toolkit
2019-12-16 10:31:43 -05:00
Robert Maynard
12d324e55d
CUDA: Persist SIZEOF_VOID_P and PLATFORM_ABI
...
The CUDA language failed to persist CMAKE_SIZEOF_VOID_P
and CMAKE_INTERNAL_PLATFORM_ABI, causing find_ calls to fail when
the only enabled language was CUDA. This specifically occurred
when having to locate libraries inside `lib64` directories.
2019-12-16 10:31:43 -05:00
Brad King
ff67b24ecd
Merge topic 'FindBLAS-OpenBLAS-thread'
...
d1e111d166 FindBLAS: Consider OpenBLAS with thread libraries only with C or CXX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4134
2019-12-13 10:36:36 -05:00
Brad King
e3059f7bb4
Merge topic 'FindBLAS-OpenBLAS-thread' into release-3.16
...
d1e111d166 FindBLAS: Consider OpenBLAS with thread libraries only with C or CXX
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4134
2019-12-13 10:36:35 -05:00
Tor Arne Vestbø
a9b41195d2
Handle multi-arch sysroots on Apple platforms
2019-12-13 16:35:38 +01:00
Brad King
cffd618230
Merge topic 'backport-3.16-vs-v142-version'
...
2f853eec3d Merge branch 'backport-3.15-vs-v142-version' into backport-3.16-vs-v142-version
d8d4924d98 VS: Fix support for v142 toolset minor versions in VS 16.5+
07612646fe VS: Fix support for v142 toolset minor versions in VS 16.5+
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4133
2019-12-13 10:31:41 -05:00
Kyle Edwards
966a9eece3
Merge topic 'function-var-current'
...
24fdd51f45 Refactor: Replace CMAKE_CURRENT_LIST_DIR with CMAKE_CURRENT_FUNCTION_LIST_DIR
90e3e2a777 cmFunctionCommand: Introduce `CMAKE_CURRENT_FUNCTION*` variables
dd54290dab Refactor: Modernize `function` command
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Ben Boeckel <ben.boeckel@kitware.com >
Merge-request: !4000
2019-12-12 14:00:41 -05:00
Brad King
d1e111d166
FindBLAS: Consider OpenBLAS with thread libraries only with C or CXX
...
The check added by commit 276b56f01c (FindBLAS: Add second try for
OpenBLAS with thread libraries., 2019-06-07, v3.15.0-rc2~5^2) can
work only when C or CXX is enabled.
Fixes : #20092
2019-12-12 12:10:47 -05:00
Brad King
4fb9c88042
Merge topic 'add_cuda_meta_compiler_features'
...
2467a2b318 CUDA: Add cuda meta-features (e.g. ``cuda_std_11``) support
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !3992
2019-12-12 11:57:18 -05:00
Brad King
bd855ffb55
Merge topic 'FindThreads-tsan'
...
b328cbaadb FindThreads: Add pthread_cancel to program to test for pthreads in libc
Acked-by: Kitware Robot <kwrobot@kitware.com >
Acked-by: Rolf Eike Beer <eike@sf-mail.de >
Merge-request: !4056
2019-12-12 11:55:52 -05:00
Brad King
0e0571599f
Merge topic 'ctest-drmemory-support'
...
676befdf52 ctest: add support for memcheck using Dr. Memory
2db0a65f56 cmCTestMemCheckHandler.cxx: minor refactoring
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4119
2019-12-12 11:54:54 -05:00
Brad King
d8d4924d98
VS: Fix support for v142 toolset minor versions in VS 16.5+
...
The fix in commit 5117389931 (VS: Fix support for v142 toolset minor
versions, 2019-10-01, v3.16.0-rc1~32^2) worked around a bug in VS's
placement of toolset files. VS 16.5 will fix that bug and restore the
original pattern for locations of toolset files. Update our logic to
look for both possibilities.
Issue: #19779
2019-12-12 11:28:34 -05:00
Kyle Edwards
651b5d157a
Merge topic 'cpack-use-CPACK_PACKAGE_HOMEPAGE_URL'
...
3476dbe6d7 CPack: CMAKE_PROJECT_HOMEPAGE_URL -> CPACK_PACKAGE_HOMEPAGE_URL
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4024
2019-12-11 10:59:29 -05:00
Cristian Morales Vega
b328cbaadb
FindThreads: Add pthread_cancel to program to test for pthreads in libc
...
When using ThreadSanitizer our existing CMAKE_HAVE_LIBC_PTHREAD test
program links using symbols from the tsan library. Among the symbols
not provided by that library, `pthread_cancel()` seems to be the less
risky symbol to add to the check.
Fixes : #19981
2019-12-11 09:26:39 -05:00
Cristian Adam
7a44e16d7f
Refactor SDK name to path into a function
2019-12-11 11:55:46 +01:00
Robert Maynard
2467a2b318
CUDA: Add cuda meta-features (e.g. `cuda_std_11`) support
2019-12-10 17:56:48 -05:00
Dietmar Scheidl
676befdf52
ctest: add support for memcheck using Dr. Memory
...
Fixes : #19788
2019-12-10 14:42:30 -05:00
shibayan
ea882b4aa9
MSVC: Fixed missing import library for Windows 10 ARM64 (Desktop)
...
Add the same import library as x86/x64 by default for Windows 10 ARM64 (Desktop, not UWP).
Fixes : #20077
2019-12-11 02:40:46 +09:00
Alex Turbov
24fdd51f45
Refactor: Replace CMAKE_CURRENT_LIST_DIR with CMAKE_CURRENT_FUNCTION_LIST_DIR
...
Some modules define an intermediate global scope visible variables
to access "resource" files from functions.
Now these variables could be eliminated.
2019-12-10 16:43:27 +02:00
Brad King
db127457e3
Merge topic 'wxwidgets_macos_weakframework' into release-3.16
...
ada1824dc5 FindwxWidgets: Add support for 3.1.3 on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4126
2019-12-10 09:29:01 -05:00
Brad King
6dffb10444
Merge topic 'wxwidgets_macos_weakframework'
...
ada1824dc5 FindwxWidgets: Add support for 3.1.3 on macOS
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4126
2019-12-10 09:29:01 -05:00
Brad King
724aa9fd3c
Merge topic 'toc_on_ppc'
...
cb984c6627 Check*CompilerFlag: Modernize modules
d806263578 Merge branch 'backport-3.16-toc_on_ppc' into toc_on_ppc
90d8bd2deb Merge branch 'backport-3.15-toc_on_ppc' into backport-3.16-toc_on_ppc
b35926e260 Check for support before adding bigtoc linker flag
958f858ad8 Check for support before adding bigtoc linker flag
8c7b7df788 bootstrap: Add target_link_options command
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4122
2019-12-10 09:16:20 -05:00
Tobias Taschner
ada1824dc5
FindwxWidgets: Add support for 3.1.3 on macOS
...
Previously only -framework was used starting with 3.1.3 -weak_framework
might also be used and has to be handled.
2019-12-10 09:11:14 -05:00
Alex Turbov
3476dbe6d7
CPack: CMAKE_PROJECT_HOMEPAGE_URL -> CPACK_PACKAGE_HOMEPAGE_URL
...
At CPack running time the `CMAKE_PROJECT_HOMEPAGE_URL` variable
is not set.
Internal CPack modules (e.g. CPackDEB, CPackRPM, CPackFreeBSD)
should use `CPACK_PACKAGE_HOMEPAGE_URL` instead, which is available
after inclusion of `CPack.cmake` into `CMakeLists.txt`.
Closes : #19607
2019-12-09 17:06:10 -05:00
Alexander Grund
cb984c6627
Check*CompilerFlag: Modernize modules
...
- User lower-case names
- Wrap in function instead of macro to avoid set-unset calls
- Use IN LISTS for foreach
2019-12-09 14:15:42 -05:00
Brad King
b2634d639b
Merge topic 'cuda_updates_for_10.2'
...
5341f5e4a1 CUDA: get header deps from compiler invocation when possible
7f15c99851 CUDA: forward unknown flags to host compiler when possible.
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4099
2019-12-09 11:21:58 -05:00
Brad King
51b87bcc62
Merge topic 'CPackNuGet-version-spec'
...
161a19e547 CPackNuGet: Fix handling of version specs with '['
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4082
2019-12-09 11:20:55 -05:00
Brad King
1da7fa3b47
Merge topic 'compiler-launcher-env'
...
6f48c59257 launcher: support setting a compiler launcher through the environment
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4095
2019-12-09 11:19:57 -05:00
Kyle Edwards
5d6b70ccfe
Merge topic 'libarchive-target'
...
30488b3b9f FindLibArchive: create a target
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4117
2019-12-09 09:59:53 -05:00
Tor Arne Vestbø
777d364913
Use xcrun instead of xcodebuild for resolving SDK path
...
It's much cheaper to run.
2019-12-09 14:55:48 +01:00
Yacoub Hossain
161a19e547
CPackNuGet: Fix handling of version specs with '['
...
Build a string directly to avoid depending on CMake lists which do
not handle square brackets in values very well.
Fixes : #20010
2019-12-06 09:14:36 -05:00
Brad King
4ec0572736
Merge topic 'vs-clangcl-toolset'
...
3c125c6de0 VS: Support Visual Studio Clang Toolkit identification
Acked-by: Kitware Robot <kwrobot@kitware.com >
Merge-request: !4111
2019-12-06 08:37:37 -05:00
T.J. Corona
30488b3b9f
FindLibArchive: create a target
2019-12-05 17:18:28 -05:00
Ben Boeckel
6f48c59257
launcher: support setting a compiler launcher through the environment
...
This makes it much easier to use a launcher for all CMake projects in an
environment rather than having to remember to pass the setting to every
CMake build.
2019-12-05 14:25:36 -05:00
Justin Goshi
3c125c6de0
VS: Support Visual Studio Clang Toolkit identification
...
Teach CMake that the `ClangCl` toolset uses the `ClangClExecutable`
value as the path to the compiler executable.
2019-12-05 11:48:48 -05:00