From dcc1c1291e1c760c51fd33c0397ef46891fe807e Mon Sep 17 00:00:00 2001 From: Mike Wall Date: Wed, 6 Oct 2021 10:55:10 -0600 Subject: [PATCH] Add CUDA libraries when linking if CUDA is found by cmake --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 95941aaa8..d84a1f2b2 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -239,6 +239,7 @@ endif() if (CUDA_FOUND) message("CUDA CUBLAS libraries: ${CUDA_CUBLAS_LIBRARIES}") message("CUDA libraries: ${CUDA_LIBRARIES}") + list(APPEND LINK_LIBRARIES ${CUDA_LIBRARIES}) include_directories(${CUDA_INCLUDE_DIRS}) endif()