mirror of
https://github.com/aristocratos/btop.git
synced 2025-12-23 22:29:08 -05: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:
committed by
Steffen
parent
2795c35fe8
commit
e2d8e13831
@@ -178,6 +178,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)
|
||||
|
||||
Reference in New Issue
Block a user