summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCUDACompiler.cmake.in
diff options
context:
space:
mode:
authorFrancisco Facioni <fran6co@gmail.com>2020-01-10 14:03:25 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-03 13:31:13 (GMT)
commit55196a1440e26917d40e6a7a3eb8d9fb323fa657 (patch)
treec61bfa5795dffcb5cc70981f2c7fdf52ccfb7cfb /Modules/CMakeCUDACompiler.cmake.in
parent2caae281722b645a5842e1f1689b152b72bb6038 (diff)
downloadCMake-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.in1
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@")