summaryrefslogtreecommitdiff
path: root/Modules/CMakeCUDACompiler.cmake.in
diff options
context:
space:
mode:
authorFrancisco Facioni <fran6co@gmail.com>2020-01-10 14:03:25 +0000
committerBrad King <brad.king@kitware.com>2020-03-03 08:31:13 -0500
commit55196a1440e26917d40e6a7a3eb8d9fb323fa657 (patch)
treec61bfa5795dffcb5cc70981f2c7fdf52ccfb7cfb /Modules/CMakeCUDACompiler.cmake.in
parent2caae281722b645a5842e1f1689b152b72bb6038 (diff)
downloadcmake-55196a1440e26917d40e6a7a3eb8d9fb323fa657.tar.gz
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.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCUDACompiler.cmake.in b/Modules/CMakeCUDACompiler.cmake.in
index 4a615a39bb..14a39a9b5d 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@")