diff options
| author | Simone Gasparini <simone.gasparini@gmail.com> | 2020-10-20 20:21:51 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-10-20 11:21:51 -0700 |
| commit | 91b255887ccbab1c085c38a71a8c3728c40dd527 (patch) | |
| tree | cddb04334cf8779f4b1c2923f2f095ee2295602c | |
| parent | 4aa08938a22f7cb90842280571005c4a637e7098 (diff) | |
| download | vcpkg-91b255887ccbab1c085c38a71a8c3728c40dd527.tar.gz vcpkg-91b255887ccbab1c085c38a71a8c3728c40dd527.zip | |
[cuda] improve maintainability for the version check (#14033)
| -rw-r--r-- | ports/cuda/CONTROL | 2 | ||||
| -rw-r--r-- | ports/cuda/vcpkg_find_cuda.cmake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ports/cuda/CONTROL b/ports/cuda/CONTROL index 348fc9ae3..212211608 100644 --- a/ports/cuda/CONTROL +++ b/ports/cuda/CONTROL @@ -1,5 +1,5 @@ Source: cuda Version: 10.1 -Port-Version: 3 +Port-Version: 4 Description: A parallel computing platform and programming model Homepage: https://developer.nvidia.com/cuda-toolkit diff --git a/ports/cuda/vcpkg_find_cuda.cmake b/ports/cuda/vcpkg_find_cuda.cmake index 14719b0f3..287960084 100644 --- a/ports/cuda/vcpkg_find_cuda.cmake +++ b/ports/cuda/vcpkg_find_cuda.cmake @@ -80,7 +80,7 @@ function(vcpkg_find_cuda) set(CUDA_VERSION_MINOR ${CMAKE_MATCH_2})
set(CUDA_VERSION_PATCH ${CMAKE_MATCH_3})
- if (CUDA_VERSION_MAJOR LESS 10 AND CUDA_VERSION_MINOR LESS 1)
+ if ("${CUDA_VERSION_MAJOR}.${CUDA_VERSION_MINOR}." VERSION_LESS ${CUDA_REQUIRED_VERSION})
message(FATAL_ERROR "CUDA ${CUDA_VERSION} found, but v${CUDA_REQUIRED_VERSION} is required. Please download and install a more recent version of CUDA from:"
"\n https://developer.nvidia.com/cuda-downloads\n")
endif()
|
