From 23519dd24fc3f6c1c0f80fd57aa99fea1d869962 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 22 May 2020 07:38:42 -0400 Subject: CUDA: Fix implicit runtime library filtering on Windows The CUDA runtime library names may have a `.lib` suffix. Exclude those too. --- Modules/CMakeDetermineCUDACompiler.cmake | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Modules/CMakeDetermineCUDACompiler.cmake b/Modules/CMakeDetermineCUDACompiler.cmake index 2fc7a82..f115daa 100644 --- a/Modules/CMakeDetermineCUDACompiler.cmake +++ b/Modules/CMakeDetermineCUDACompiler.cmake @@ -276,9 +276,9 @@ endif() # and from CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES in CMakeTestCUDACompiler. set(CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES_EXCLUDE # The CUDA runtime libraries are controlled by CMAKE_CUDA_RUNTIME_LIBRARY. - cudart - cudart_static - cudadevrt + cudart cudart.lib + cudart_static cudart_static.lib + cudadevrt cudadevrt.lib # Dependencies of the CUDA static runtime library on Linux hosts. rt -- cgit v0.12