mirror of
https://github.com/debauchee/barrier.git
synced 2026-05-09 16:02:46 +08:00
fix FreeBSD build
This commit is contained in:
@@ -36,7 +36,8 @@ if (WIN32)
|
||||
elseif (APPLE)
|
||||
find_library(APPSERVICES_LIB ApplicationServices)
|
||||
target_link_libraries(barrier ${APPSERVICES_LIB})
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
||||
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||
target_link_libraries (barrier dns_sd)
|
||||
else()
|
||||
target_link_libraries (barrier)
|
||||
|
||||
@@ -40,5 +40,8 @@ endif()
|
||||
add_library(arch STATIC ${sources})
|
||||
|
||||
if (UNIX)
|
||||
target_link_libraries(arch dl ${libs})
|
||||
target_link_libraries(arch ${libs})
|
||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
||||
target_link_libraries(arch dl)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user