Skip to content

Commit

Permalink
Merge pull request #106 from coypoop/master
Browse files Browse the repository at this point in the history
Small patches for netbsd
  • Loading branch information
walker0643 committed Sep 8, 2018
2 parents f203a7f + 443e656 commit 53ebc47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Expand Up @@ -132,7 +132,9 @@ if (UNIX)
# curl is used on both Linux and Mac
find_package (CURL)
if (CURL_FOUND)
list (APPEND libs curl)
include_directories(${CURL_INCLUDE_DIRS})
list (APPEND libs ${CURL_LIBRARIES})

else()
message (FATAL_ERROR "Missing library: curl")
endif()
Expand Down
3 changes: 1 addition & 2 deletions src/gui/CMakeLists.txt
Expand Up @@ -36,8 +36,7 @@ if (WIN32)
elseif (APPLE)
find_library(APPSERVICES_LIB ApplicationServices)
target_link_libraries(barrier ${APPSERVICES_LIB})
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR
${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
else()
target_link_libraries (barrier dns_sd)
endif()

Expand Down
4 changes: 1 addition & 3 deletions src/lib/arch/CMakeLists.txt
Expand Up @@ -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()

0 comments on commit 53ebc47

Please sign in to comment.