summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/NVIDIA-CUDA.cmake
diff options
context:
space:
mode:
authorFrancisco Facioni <francisco.facioni@hawkeyeinnovations.com>2019-05-30 08:35:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-06-03 15:53:27 (GMT)
commitd91b5a72cd751b75fbce163fa7a3ea2f05bf484d (patch)
tree2067e7d2249a42402a974d390349dcd9bb258be1 /Modules/Compiler/NVIDIA-CUDA.cmake
parent5efac09beda23c1fb188c660df39b1884f252f64 (diff)
downloadCMake-d91b5a72cd751b75fbce163fa7a3ea2f05bf484d.zip
CMake-d91b5a72cd751b75fbce163fa7a3ea2f05bf484d.tar.gz
CMake-d91b5a72cd751b75fbce163fa7a3ea2f05bf484d.tar.bz2
Ninja: Add support for CUDA nvcc response files
Diffstat (limited to 'Modules/Compiler/NVIDIA-CUDA.cmake')
-rw-r--r--Modules/Compiler/NVIDIA-CUDA.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake
index de9dd99..c0ccb71 100644
--- a/Modules/Compiler/NVIDIA-CUDA.cmake
+++ b/Modules/Compiler/NVIDIA-CUDA.cmake
@@ -40,3 +40,8 @@ endif()
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)
+
+if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL "9.0")
+ set(CMAKE_CUDA_RESPONSE_FILE_LINK_FLAG "--options-file ")
+ set(CMAKE_CUDA_RESPONSE_FILE_FLAG "--options-file ")
+endif()