diff options
author | Brad King <brad.king@kitware.com> | 2016-12-13 13:06:49 -0500 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-12 10:39:03 -0500 |
commit | 5365421e84e6133f0e038995e3a8232ec46d6a91 (patch) | |
tree | a6f2c4c4ba891484a7e1144803a43f10da057daf /Modules/CMakeTestCUDACompiler.cmake | |
parent | 522b913f437b04aa10b84cb5807ab43181377d7e (diff) | |
download | cmake-5365421e84e6133f0e038995e3a8232ec46d6a91.tar.gz |
CUDA: Detect implicit link information on Windows
The `nvcc -v` output on Windows uses response files, so load the one we
need to extract the full link line.
Diffstat (limited to 'Modules/CMakeTestCUDACompiler.cmake')
-rw-r--r-- | Modules/CMakeTestCUDACompiler.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/CMakeTestCUDACompiler.cmake b/Modules/CMakeTestCUDACompiler.cmake index 670b31d119..80113cb4a5 100644 --- a/Modules/CMakeTestCUDACompiler.cmake +++ b/Modules/CMakeTestCUDACompiler.cmake @@ -58,6 +58,11 @@ else() include(${CMAKE_ROOT}/Modules/CMakeDetermineCompilerABI.cmake) CMAKE_DETERMINE_COMPILER_ABI(CUDA ${CMAKE_ROOT}/Modules/CMakeCUDACompilerABI.cu) + if("x${CMAKE_CUDA_SIMULATE_ID}" STREQUAL "xMSVC") + set(CMAKE_CUDA_IMPLICIT_LINK_LIBRARIES "${CMAKE_CUDA_HOST_IMPLICIT_LINK_LIBRARIES}") + set(CMAKE_CUDA_IMPLICIT_LINK_DIRECTORIES "${CMAKE_CUDA_HOST_IMPLICIT_LINK_DIRECTORIES}") + endif() + # Re-configure to save learned information. configure_file( ${CMAKE_ROOT}/Modules/CMakeCUDACompiler.cmake.in |