diff options
author | Brad King <brad.king@kitware.com> | 2018-03-07 15:28:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2018-03-07 15:30:35 (GMT) |
commit | f64732f59b5e7a7b5046119e6997ea885d0e0d05 (patch) | |
tree | 04881eddabf790c6f142f70534904b2c3f6e7163 /Modules/Compiler | |
parent | ac925ec09e2dd4b373353d312e9e50b6165a66d0 (diff) | |
download | CMake-f64732f59b5e7a7b5046119e6997ea885d0e0d05.zip CMake-f64732f59b5e7a7b5046119e6997ea885d0e0d05.tar.gz CMake-f64732f59b5e7a7b5046119e6997ea885d0e0d05.tar.bz2 |
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
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index 1c91654..05db548 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) |