mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-02 02:24:54 +12:00
Fix compilation with g++-10 when GPU_SUPPORT is enabled by adding the -ldl flag
This commit is contained in:
parent
b2df50396b
commit
ae26592fb7
|
@ -126,6 +126,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 ${CMAKE_DL_LIBS})
|
||||
|
||||
if(BTOP_RSMI_STATIC)
|
||||
# ROCm doesn't properly add it's folders to the module path if `CMAKE_MODULE_PATH` is already
|
||||
|
|
Loading…
Reference in a new issue