From 1bd2e7274114ef9d6e3a2023e71b15d2a3a22d4b Mon Sep 17 00:00:00 2001 From: Attila Krasznahorkay Date: Wed, 15 Nov 2023 13:27:04 +0100 Subject: [PATCH] Link traccc::performance against ${CMAKE_DL_LIBS}. This is necessary on some platforms to be able to use the NVTX code properly. --- performance/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/performance/CMakeLists.txt b/performance/CMakeLists.txt index ecba6aec5e..e36238e487 100644 --- a/performance/CMakeLists.txt +++ b/performance/CMakeLists.txt @@ -79,7 +79,7 @@ endif() find_package( CUDAToolkit ) if( CUDAToolkit_FOUND ) target_link_libraries( traccc_performance - PRIVATE CUDA::cudart ) + PRIVATE CUDA::cudart ${CMAKE_DL_LIBS} ) target_compile_definitions( traccc_performance PRIVATE TRACCC_HAVE_NVTX ) endif()