summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-07 10:28:48 -0500
committerBrad King <brad.king@kitware.com>2018-03-07 10:30:35 -0500
commitf64732f59b5e7a7b5046119e6997ea885d0e0d05 (patch)
tree04881eddabf790c6f142f70534904b2c3f6e7163
parentac925ec09e2dd4b373353d312e9e50b6165a66d0 (diff)
downloadcmake-f64732f59b5e7a7b5046119e6997ea885d0e0d05.tar.gz
CUDA: Do not pass unsupported @rspfile arguments to NVCC
The nvcc compiler does not support `@<rspfile>` arguments. It does offer a `--options-file` argument that can be investigated later. Fixes: #17797
-rw-r--r--Modules/Compiler/NVIDIA-CUDA.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake
index 1c91654580..05db548f57 100644
--- a/Modules/Compiler/NVIDIA-CUDA.cmake
+++ b/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)