From 85b26787005b64a605b25633adbe00aa7a808a4d Mon Sep 17 00:00:00 2001
From: Simon Oehrl <simon.oehrl@rwth-aachen.de>
Date: Wed, 2 Aug 2023 09:52:47 +0200
Subject: [PATCH] Add cuda driver target to eliminate linking errors

---
 CMakeLists.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 82751647..4e408f8e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -824,7 +824,7 @@ message("=======================================================================
           )
         else()
           find_package(CUDAToolkit REQUIRED)
-          target_link_libraries(${NAME} CUDA::cudart_static cuda)
+          target_link_libraries(${NAME} CUDA::cudart_static CUDA::cuda_driver)
           target_include_directories(${NAME} PUBLIC
             $<BUILD_INTERFACE:${LIBLAVA_INC_DIR}/nvenc_headers>
           )
-- 
GitLab