try fixing freebsd build

pull/1334/head
Jeff Becker 5 years ago
parent 4c0a52ac9c
commit 8b63326d8c
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -250,6 +250,10 @@ add_library(${STATIC_LIB} STATIC ${LIB_SRC})
set(LIBS ${LIBS} libutp)
target_link_libraries(${STATIC_LIB} PUBLIC cxxopts ${ABYSS_LIB} ${PLATFORM_LIB} ${UTIL_LIB} ${CRYPTOGRAPHY_LIB} ${LIBS})
if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
target_include_directories(${STATIC_LIB} SYSTEM PUBLIC /usr/local/include)
endif()
if(WITH_SHARED)
add_library(${SHARED_LIB} SHARED ${LIB_SRC})
set(LIBS ${LIBS} Threads::Threads)

Loading…
Cancel
Save