diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a4dbec..2369a36 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,7 @@ target_link_libraries(btop Threads::Threads) # Enable GPU support if(LINUX AND BTOP_GPU) target_compile_definitions(btop PRIVATE GPU_SUPPORT) + target_link_libraries(btop dl) if(BTOP_RSMI_STATIC) # ROCm doesn't properly add it's folders to the module path if `CMAKE_MODULE_PATH` is already