diff options
author | Brad King <brad.king@kitware.com> | 2020-06-08 11:57:47 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-06-08 11:57:52 (GMT) |
commit | 45ecea430bfa6969647233f444ca31f386dabc55 (patch) | |
tree | ebc38dbb9bd509dd207278bc2e9d362ce2697c97 /Modules | |
parent | 6f8a31849c7287611e01bf67a7ca5a3f5c14dc4f (diff) | |
parent | 7e2f86461a00cfe4951366ca0f6aea9f74ff4f17 (diff) | |
download | CMake-45ecea430bfa6969647233f444ca31f386dabc55.zip CMake-45ecea430bfa6969647233f444ca31f386dabc55.tar.gz CMake-45ecea430bfa6969647233f444ca31f386dabc55.tar.bz2 |
Merge topic 'cuda_cudart_status' into release-3.18
7e2f86461a FindCUDAToolkit: Fix cudart not found status message
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !4861
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindCUDAToolkit.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/FindCUDAToolkit.cmake b/Modules/FindCUDAToolkit.cmake index b28892e..7d4e168 100644 --- a/Modules/FindCUDAToolkit.cmake +++ b/Modules/FindCUDAToolkit.cmake @@ -498,10 +498,6 @@ else() unset(NVCC_OUT) endif() -if(NOT CUDA_CUDART AND NOT CUDAToolkit_FIND_QUIETLY) - message(STATUS "Unable to find cudart library.") -endif() - # Find the CUDA Runtime Library libcudart find_library(CUDA_CUDART NAMES cudart @@ -514,6 +510,10 @@ if(NOT CUDA_CUDART) ) endif() +if(NOT CUDA_CUDART AND NOT CUDAToolkit_FIND_QUIETLY) + message(STATUS "Unable to find cudart library.") +endif() + unset(CUDAToolkit_ROOT_DIR) if(_CUDAToolkit_Pop_Prefix) list(REMOVE_AT CMAKE_PREFIX_PATH -1) |