Skip to content
Snippets Groups Projects
Commit adf82af2 authored by Brad King's avatar Brad King Committed by Kitware Robot
Browse files

Merge topic 'cuda_cudart_status'


7e2f8646 FindCUDAToolkit: Fix cudart not found status message

Acked-by: default avatarKitware Robot <kwrobot@kitware.com>
Merge-request: !4861
parents 4070e6ba 7e2f8646
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment