mirror of
https://github.com/aristocratos/btop.git
synced 2024-06-16 09:24:45 +12:00
cmake: link to CMAKE_DL_LIBS
Link btop to ${CMAKE_DL_LIBS} when building using shared libs and GPU support on linux
This commit is contained in:
parent
b2df50396b
commit
e10ef35a1c
|
@ -151,6 +151,9 @@ if(LINUX AND BTOP_GPU)
|
||||||
|
|
||||||
target_link_libraries(btop ROCm)
|
target_link_libraries(btop ROCm)
|
||||||
endif()
|
endif()
|
||||||
|
if(NOT BTOP_STATIC)
|
||||||
|
target_link_libraries(btop ${CMAKE_DL_LIBS})
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(BTOP_USE_MOLD)
|
if(BTOP_USE_MOLD)
|
||||||
|
|
Loading…
Reference in a new issue