Skip to content

Commit

Permalink
apple: link with resolv, CoreFoundation, Security
Browse files Browse the repository at this point in the history
Change-Id: I95dfb2e81308d0c727b18aae96d9b67d570cf492
  • Loading branch information
aberaud committed Jul 27, 2023
1 parent e854139 commit 0627100
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,10 @@ list (APPEND dhtnet_HEADERS

add_library(dhtnet ${dhtnet_SOURCES})
target_link_libraries(dhtnet PUBLIC PkgConfig::opendht PkgConfig::pjproject fmt::fmt ${MSGPACK_LIB})
if (APPLE)
target_link_libraries(dhtnet PRIVATE SYSTEM "-framework CoreFoundation" "-framework Security" "resolv")
endif()

target_include_directories(dhtnet PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>
Expand Down

0 comments on commit 0627100

Please sign in to comment.