Skip to content

Commit

Permalink
Link traccc::performance against ${CMAKE_DL_LIBS}.
Browse files Browse the repository at this point in the history
This is necessary on some platforms to be able to use the NVTX
code properly.
  • Loading branch information
krasznaa committed Jan 16, 2024
1 parent 9d37f66 commit 1168a72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion performance/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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()

0 comments on commit 1168a72

Please sign in to comment.