diff options
author | Francisco Facioni <fran6co@gmail.com> | 2020-01-10 14:03:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-03-03 13:31:13 (GMT) |
commit | 55196a1440e26917d40e6a7a3eb8d9fb323fa657 (patch) | |
tree | c61bfa5795dffcb5cc70981f2c7fdf52ccfb7cfb /Modules/CMakeCUDACompiler.cmake.in | |
parent | 2caae281722b645a5842e1f1689b152b72bb6038 (diff) | |
download | CMake-55196a1440e26917d40e6a7a3eb8d9fb323fa657.zip CMake-55196a1440e26917d40e6a7a3eb8d9fb323fa657.tar.gz CMake-55196a1440e26917d40e6a7a3eb8d9fb323fa657.tar.bz2 |
MSVC: Use 'lib' instead of 'link /lib' to create static libraries
`link.exe /lib` is an undocumented flag and it just calls `lib.exe`.
Also `link.exe` doesn't parse the `/lib` option correctly when in a
response file.
Diffstat (limited to 'Modules/CMakeCUDACompiler.cmake.in')
-rw-r--r-- | Modules/CMakeCUDACompiler.cmake.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in index 4a615a3..14a39a9 100644 --- a/Modules/CMakeCUDACompiler.cmake.in +++ b/Modules/CMakeCUDACompiler.cmake.in @@ -54,4 +54,5 @@ set(CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES@ set(CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES "@CMAKE_CUDA_IMPLICIT_LINK_FRAMEWORK_DIRECTORIES@") set(CMAKE_LINKER "@CMAKE_LINKER@") +set(CMAKE_AR "@CMAKE_AR@") set(CMAKE_MT "@CMAKE_MT@") |