We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 585a321 commit 35acac1Copy full SHA for 35acac1
CMakeLists.txt
@@ -3,6 +3,8 @@ project(libipfs_go)
3
4
if(APPLE)
5
set(GOOS "darwin")
6
+ find_library(SECURITY_FRAMEWORK Security REQUIRED)
7
+ find_library(RESOLV_LIBRARY resolv REQUIRED)
8
elseif(UNIX)
9
if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
10
set(GOOS "freebsd")
@@ -81,4 +83,11 @@ set_target_properties(libipfs PROPERTIES
81
83
IMPORTED_LOCATION ${CMAKE_CURRENT_BINARY_DIR}/${GO_OUT}
82
84
INTERFACE_INCLUDE_DIRECTORIES ${CMAKE_CURRENT_BINARY_DIR}
85
)
86
+
87
+if(APPLE)
88
+ set_target_properties(libipfs PROPERTIES
89
+ INTERFACE_LINK_LIBRARIES "${SECURITY_FRAMEWORK};${RESOLV_LIBRARY}"
90
+ )
91
+endif()
92
93
add_dependencies(libipfs libipfs_build)
0 commit comments