diff options
author | Francisco Facioni <francisco.facioni@hawkeyeinnovations.com> | 2019-05-30 08:35:03 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-06-03 15:53:27 (GMT) |
commit | d91b5a72cd751b75fbce163fa7a3ea2f05bf484d (patch) | |
tree | 2067e7d2249a42402a974d390349dcd9bb258be1 /Modules/Compiler/NVIDIA-CUDA.cmake | |
parent | 5efac09beda23c1fb188c660df39b1884f252f64 (diff) | |
download | CMake-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.cmake | 5 |
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() |