diff options
author | Brad King <brad.king@kitware.com> | 2019-06-04 12:33:11 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-06-04 12:35:47 (GMT) |
commit | 36140d864e71ee3d61240da42df2318b01cfbced (patch) | |
tree | 439e3098e105183092a41aba03d9b671da2a6dbc /Modules | |
parent | 65f5df7d08f2c96d551f578ec509271888ecb7be (diff) | |
parent | d91b5a72cd751b75fbce163fa7a3ea2f05bf484d (diff) | |
download | CMake-36140d864e71ee3d61240da42df2318b01cfbced.zip CMake-36140d864e71ee3d61240da42df2318b01cfbced.tar.gz CMake-36140d864e71ee3d61240da42df2318b01cfbced.tar.bz2 |
Merge topic 'ninja-nvcc-rsp'
d91b5a72cd Ninja: Add support for CUDA nvcc response files
5efac09bed Ninja: Compute linker response file flag earlier
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3399
Diffstat (limited to 'Modules')
-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() |