mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-30 03:03:17 +00:00
include openssl in linbunbound static linking, added errors for openssl and expat
This commit is contained in:
parent
c70fa8689f
commit
5829b35147
1 changed files with 14 additions and 3 deletions
17
external/CMakeLists.txt
vendored
17
external/CMakeLists.txt
vendored
|
@ -86,7 +86,18 @@ IF(!UNBOUND_INCLUDE_DIR OR STATIC)
|
||||||
INCLUDE(ExternalProject)
|
INCLUDE(ExternalProject)
|
||||||
|
|
||||||
FIND_PACKAGE(OpenSSL REQUIRED)
|
FIND_PACKAGE(OpenSSL REQUIRED)
|
||||||
|
IF(!OPENSSL_LIBRARIES)
|
||||||
|
MESSAGE(FATAL_ERROR "${BoldRed}Could not find the openssl library. Please make sure you have installed openssl or libssl-dev or the equivalent${ColourReset}")
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(STATUS "Found openssl libraries")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
FIND_PACKAGE(Expat REQUIRED)
|
FIND_PACKAGE(Expat REQUIRED)
|
||||||
|
IF(!EXPAT_LIBRARIES)
|
||||||
|
MESSAGE(FATAL_ERROR "${BoldRed}Could not find the expat library. Please make sure you have installed libexpat or libexpat-dev or the equivalent${ColourReset}")
|
||||||
|
ELSE()
|
||||||
|
MESSAGE(STATUS "Found expat libraries")
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
IF(MINGW)
|
IF(MINGW)
|
||||||
EXTERNALPROJECT_ADD(
|
EXTERNALPROJECT_ADD(
|
||||||
|
@ -105,7 +116,7 @@ IF(!UNBOUND_INCLUDE_DIR OR STATIC)
|
||||||
LOG_TEST 1
|
LOG_TEST 1
|
||||||
LOG_INSTALL 1
|
LOG_INSTALL 1
|
||||||
)
|
)
|
||||||
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.dll.a" PARENT_SCOPE)
|
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.dll.a;${OPENSSL_LIBRARIES}" PARENT_SCOPE)
|
||||||
ELSEIF(APPLE)
|
ELSEIF(APPLE)
|
||||||
execute_process(COMMAND brew --prefix OUTPUT_VARIABLE BREW_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
|
execute_process(COMMAND brew --prefix OUTPUT_VARIABLE BREW_PREFIX OUTPUT_STRIP_TRAILING_WHITESPACE)
|
||||||
EXTERNALPROJECT_ADD(
|
EXTERNALPROJECT_ADD(
|
||||||
|
@ -124,7 +135,7 @@ IF(!UNBOUND_INCLUDE_DIR OR STATIC)
|
||||||
LOG_TEST 1
|
LOG_TEST 1
|
||||||
LOG_INSTALL 1
|
LOG_INSTALL 1
|
||||||
)
|
)
|
||||||
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.a" PARENT_SCOPE)
|
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.a;${OPENSSL_LIBRARIES}" PARENT_SCOPE)
|
||||||
ELSE()
|
ELSE()
|
||||||
EXTERNALPROJECT_ADD(
|
EXTERNALPROJECT_ADD(
|
||||||
libunbound
|
libunbound
|
||||||
|
@ -142,7 +153,7 @@ IF(!UNBOUND_INCLUDE_DIR OR STATIC)
|
||||||
LOG_TEST 1
|
LOG_TEST 1
|
||||||
LOG_INSTALL 1
|
LOG_INSTALL 1
|
||||||
)
|
)
|
||||||
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.a" PARENT_SCOPE)
|
set(UNBOUND_LIBRARY "${CMAKE_CURRENT_BINARY_DIR}/unbound/src/libunbound-build/libunbound.a;${OPENSSL_LIBRARIES}" PARENT_SCOPE)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
set(UNBOUND_STATIC true PARENT_SCOPE)
|
set(UNBOUND_STATIC true PARENT_SCOPE)
|
||||||
|
|
Loading…
Reference in a new issue