mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-23 00:56:21 +03:00
Use ${CMAKE_DL_LIBS} rather than listing OSes.
CMake makes our lives easier. Needed for NetBSD, which also doesn't have libdl.so.
This commit is contained in:
parent
87820d9387
commit
443e656be2
@ -41,7 +41,5 @@ add_library(arch STATIC ${sources})
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(arch ${libs})
|
||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
target_link_libraries(arch dl)
|
||||
endif()
|
||||
target_link_libraries(arch ${CMAKE_DL_LIBS})
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user