From f64732f59b5e7a7b5046119e6997ea885d0e0d05 Mon Sep 17 00:00:00 2001 From: Brad King Date: Wed, 7 Mar 2018 10:28:48 -0500 Subject: [PATCH] CUDA: Do not pass unsupported @rspfile arguments to NVCC The nvcc compiler does not support `@` arguments. It does offer a `--options-file` argument that can be investigated later. Fixes: #17797 --- Modules/Compiler/NVIDIA-CUDA.cmake | 6 ++++++ 1 file changed, 6 insertions(+) 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 @ 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)