diff --git a/CMakeLists.txt b/CMakeLists.txt index 9a4dbec..3dd9eae 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -168,6 +168,9 @@ if(LINUX AND BTOP_GPU) target_link_libraries(btop ROCm) endif() + if(NOT BTOP_STATIC) + target_link_libraries(btop ${CMAKE_DL_LIBS}) + endif() endif() if(BTOP_USE_MOLD)