summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-03-08 14:48:01 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-03-08 14:48:28 (GMT)
commit69b152967d58fbe0aae5d873fffcc7cc2156364b (patch)
tree7027297803aa2e7042b4d0d8444093d5ed4f203b /Modules/Compiler
parent458fc1de49184a975019a18b5ae54eee373e4b13 (diff)
parentf64732f59b5e7a7b5046119e6997ea885d0e0d05 (diff)
downloadCMake-69b152967d58fbe0aae5d873fffcc7cc2156364b.zip
CMake-69b152967d58fbe0aae5d873fffcc7cc2156364b.tar.gz
CMake-69b152967d58fbe0aae5d873fffcc7cc2156364b.tar.bz2
Merge topic 'cuda-no-device-link-rsp'
f64732f59b CUDA: Do not pass unsupported @rspfile arguments to NVCC Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1831
Diffstat (limited to 'Modules/Compiler')
-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 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)