Browse Source

Merge branch 'cuda-no-device-link-rsp' into release-3.11

Merge-request: !1831
Brad King 7 years ago
parent
commit
57f35bba84
1 changed files with 6 additions and 0 deletions
  1. 6 0
      Modules/Compiler/NVIDIA-CUDA.cmake

+ 6 - 0
Modules/Compiler/NVIDIA-CUDA.cmake

@@ -33,3 +33,9 @@ else()
   endif()
 
 endif()
+
+# FIXME: investigate use of --options-file.
+# Tell Makefile generator that nvcc does not support @<rspfile> syntax.
+set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_INCLUDES 0)
+set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_LIBRARIES 0)
+set(CMAKE_CUDA_USE_RESPONSE_FILE_FOR_OBJECTS 0)