diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-12-30 13:21:50 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-12-30 13:21:50 +0200 |
commit | 91001aa4460a59a42dc14a32c8e90717fd29dbd2 (patch) | |
tree | 68da43b847d517870a2f5c92a6ef13167730945c /external/unbound/CMakeLists.txt | |
parent | Merge pull request #577 (diff) | |
parent | fix missing unbound tests (diff) | |
download | monero-91001aa4460a59a42dc14a32c8e90717fd29dbd2.tar.xz |
Merge pull request #578
3edbf57 fix missing unbound tests (Riccardo Spagni)
2d43ae8 update unbound, fix unbound openssl issue on OS X (Riccardo Spagni)
Diffstat (limited to 'external/unbound/CMakeLists.txt')
-rw-r--r-- | external/unbound/CMakeLists.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/external/unbound/CMakeLists.txt b/external/unbound/CMakeLists.txt index 47010e1b3..4edb51230 100644 --- a/external/unbound/CMakeLists.txt +++ b/external/unbound/CMakeLists.txt @@ -30,6 +30,15 @@ cmake_minimum_required(VERSION 2.8.7) project(unbound C) +if (APPLE) + if (NOT OpenSSL_DIR) + EXECUTE_PROCESS(COMMAND brew --prefix openssl + OUTPUT_VARIABLE OPENSSL_ROOT_DIR + OUTPUT_STRIP_TRAILING_WHITESPACE) + message(STATUS "Using OpenSSL found at ${OPENSSL_ROOT_DIR}") + endif() +endif() + find_package(OpenSSL REQUIRED) find_package(Threads) @@ -159,6 +168,11 @@ elseif (WIN32) compat/getentropy_win.c) endif () +if (NOT HAVE_ISBLANK) + list(APPEND compat_src + compat/isblank.c) +endif () + if (NOT HAVE_GETADDRINFO) list(APPEND compat_src compat/fake-rfc2553.c) |