mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
cmake: Fix unbound config compile settings
This allows the OpenSSL function checks to compile in unbound's CMake configuration. Otherwise, the functions SHA256() and EVP_sha512() won't be called from libunbound as possible algorithms. They had not been compiling because static OpenSSL libraries were being used, along with lack of -ldl. The static library preference is unnecessary for the checks, so use default suffixes ordering for CMAKE_FIND_LIBRARY_SUFFIXES when building unbound. Related files: configure_checks.cmake external/unbound/validator/val_secalgo.c secalgo_ds_digest(), setup_key_digest()
This commit is contained in:
parent
3e72d97ca7
commit
7205210b0f
2 changed files with 6 additions and 0 deletions
|
@ -177,6 +177,8 @@ if(MINGW)
|
||||||
list(REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES ${DEFLIB})
|
list(REMOVE_ITEM CMAKE_CXX_IMPLICIT_LINK_DIRECTORIES ${DEFLIB})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(ORIG_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
|
||||||
if(STATIC)
|
if(STATIC)
|
||||||
if(MSVC)
|
if(MSVC)
|
||||||
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .dll.a .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
set(CMAKE_FIND_LIBRARY_SUFFIXES .lib .dll.a .a ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
|
4
external/CMakeLists.txt
vendored
4
external/CMakeLists.txt
vendored
|
@ -76,7 +76,11 @@ endif()
|
||||||
find_package(Unbound)
|
find_package(Unbound)
|
||||||
|
|
||||||
if(NOT UNBOUND_INCLUDE_DIR OR STATIC)
|
if(NOT UNBOUND_INCLUDE_DIR OR STATIC)
|
||||||
|
# We want unbound config tests to be independent of changes made to this setting.
|
||||||
|
set(CURRENT_CMAKE_FIND_LIBRARY_SUFFIXES ${CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${ORIG_CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
add_subdirectory(unbound)
|
add_subdirectory(unbound)
|
||||||
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ${CURRENT_CMAKE_FIND_LIBRARY_SUFFIXES})
|
||||||
|
|
||||||
set(UNBOUND_STATIC true PARENT_SCOPE)
|
set(UNBOUND_STATIC true PARENT_SCOPE)
|
||||||
set(UNBOUND_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/unbound/libunbound" PARENT_SCOPE)
|
set(UNBOUND_INCLUDE "${CMAKE_CURRENT_SOURCE_DIR}/unbound/libunbound" PARENT_SCOPE)
|
||||||
|
|
Loading…
Reference in a new issue