commit
53ebc47ace
|
@ -132,7 +132,9 @@ if (UNIX)
|
||||||
# curl is used on both Linux and Mac
|
# curl is used on both Linux and Mac
|
||||||
find_package (CURL)
|
find_package (CURL)
|
||||||
if (CURL_FOUND)
|
if (CURL_FOUND)
|
||||||
list (APPEND libs curl)
|
include_directories(${CURL_INCLUDE_DIRS})
|
||||||
|
list (APPEND libs ${CURL_LIBRARIES})
|
||||||
|
|
||||||
else()
|
else()
|
||||||
message (FATAL_ERROR "Missing library: curl")
|
message (FATAL_ERROR "Missing library: curl")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -36,8 +36,7 @@ if (WIN32)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
find_library(APPSERVICES_LIB ApplicationServices)
|
find_library(APPSERVICES_LIB ApplicationServices)
|
||||||
target_link_libraries(barrier ${APPSERVICES_LIB})
|
target_link_libraries(barrier ${APPSERVICES_LIB})
|
||||||
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
|
else()
|
||||||
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
|
||||||
target_link_libraries (barrier dns_sd)
|
target_link_libraries (barrier dns_sd)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
|
@ -41,7 +41,5 @@ add_library(arch STATIC ${sources})
|
||||||
|
|
||||||
if (UNIX)
|
if (UNIX)
|
||||||
target_link_libraries(arch ${libs})
|
target_link_libraries(arch ${libs})
|
||||||
if (NOT CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
target_link_libraries(arch ${CMAKE_DL_LIBS})
|
||||||
target_link_libraries(arch dl)
|
|
||||||
endif()
|
|
||||||
endif()
|
endif()
|
||||||
|
|
Loading…
Reference in New Issue