Set OPENSSL_LIBRARIES hack for bundled libunbound

This commit is contained in:
Jason Rhinelander 2020-03-15 02:30:38 -03:00
parent 4e57bfed1f
commit dc29d66ed7

View file

@ -71,6 +71,11 @@ if(NOT UNBOUND_FOUND)
# The unbound CMakeLists.txt can set it, since it's also needed for the
# static OpenSSL libraries set up there after with target_link_libraries.
message(STATUS "Using in-tree unbound")
if(STATIC AND NOT IOS)
if(UNIX)
set(OPENSSL_LIBRARIES "${OPENSSL_LIBRARIES};${CMAKE_DL_LIBS};${CMAKE_THREAD_LIBS_INIT}")
endif()
endif()
add_subdirectory(unbound)
target_link_libraries(libunbound INTERFACE unbound)
target_include_directories(libunbound INTERFACE unbound/libunbound)