diff options
author | Raul Tambre <raul.tambre@cleveron.com> | 2019-12-24 10:11:25 (GMT) |
---|---|---|
committer | Raul Tambre <raul.tambre@cleveron.com> | 2020-01-03 12:15:03 (GMT) |
commit | 7560c68f2c286e6cfcf0acad3b436c2122a9f4e6 (patch) | |
tree | 382a710cf5cc583314e46fca51a1ce0e4a0ac2eb /Modules/Compiler | |
parent | 95d32a4006ca1175d931457721640ac5e1f024c9 (diff) | |
download | CMake-7560c68f2c286e6cfcf0acad3b436c2122a9f4e6.zip CMake-7560c68f2c286e6cfcf0acad3b436c2122a9f4e6.tar.gz CMake-7560c68f2c286e6cfcf0acad3b436c2122a9f4e6.tar.bz2 |
CUDA: Fix compiler option version checks for nvcc 10.2.19
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/NVIDIA-CUDA.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/NVIDIA-CUDA.cmake b/Modules/Compiler/NVIDIA-CUDA.cmake index ad7f084..fb1fc20 100644 --- a/Modules/Compiler/NVIDIA-CUDA.cmake +++ b/Modules/Compiler/NVIDIA-CUDA.cmake @@ -4,7 +4,7 @@ set(CMAKE_CUDA_COMPILER_HAS_DEVICE_LINK_PHASE True) set(CMAKE_CUDA_VERBOSE_FLAG "-v") set(CMAKE_CUDA_VERBOSE_COMPILE_FLAG "-Xcompiler=-v") -if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 10.2) +if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 10.2.89) # The -forward-unknown-to-host-compiler flag was only # added to nvcc in 10.2 so before that we had no good # way to invoke the CUDA compiler and propagate unknown @@ -20,7 +20,7 @@ else() set(_CMAKE_CUDA_EXTRA_DEVICE_LINK_FLAGS "") endif() -if (NOT CMAKE_CUDA_COMPILER_VERSION VERSION_LESS 10.2) +if (CMAKE_CUDA_COMPILER_VERSION VERSION_GREATER_EQUAL 10.2.89) # The -MD flag was only added to nvcc in 10.2 so # before that we had to invoke the compiler twice # to get header dependency information |