diff options
author | unknown <rmaynard@nvidia.com> | 2021-04-21 13:51:31 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-04-22 15:40:46 (GMT) |
commit | 625ef88a92d6632e3efd5ee4d6578bfc77928679 (patch) | |
tree | d9c7f1c29ca6f25483b1104ce7ca734226d19ab4 /Modules/CMakeCUDAInformation.cmake | |
parent | 995be1097c35fd3187d147494156bbfb9da7037f (diff) | |
download | CMake-625ef88a92d6632e3efd5ee4d6578bfc77928679.zip CMake-625ef88a92d6632e3efd5ee4d6578bfc77928679.tar.gz CMake-625ef88a92d6632e3efd5ee4d6578bfc77928679.tar.bz2 |
CUDA: Add CMAKE_CUDA_HOST_COMPILER support on Windows non-VS generators
Diffstat (limited to 'Modules/CMakeCUDAInformation.cmake')
-rw-r--r-- | Modules/CMakeCUDAInformation.cmake | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/CMakeCUDAInformation.cmake b/Modules/CMakeCUDAInformation.cmake index 44e2c2c..541d207 100644 --- a/Modules/CMakeCUDAInformation.cmake +++ b/Modules/CMakeCUDAInformation.cmake @@ -110,13 +110,6 @@ include(CMakeCommonLanguageInclude) # CMAKE_CUDA_COMPILE_SEPARABLE_COMPILATION # CMAKE_CUDA_LINK_EXECUTABLE -if(CMAKE_CUDA_HOST_COMPILER AND CMAKE_CUDA_COMPILER_ID STREQUAL "NVIDIA") - # FIXME: This is too late for the Platform/Windows-NVIDIA-CUDA module to - # see it, so we do not support CMAKE_CUDA_HOST_COMPILER on Windows. - # Move this to Compiler/NVIDIA-CUDA and update the VS generator too. - string(APPEND _CMAKE_CUDA_EXTRA_FLAGS " -ccbin=<CMAKE_CUDA_HOST_COMPILER>") -endif() - # create a shared library if(NOT CMAKE_CUDA_CREATE_SHARED_LIBRARY) set(CMAKE_CUDA_CREATE_SHARED_LIBRARY |