From c9072b252661bea92f53ccf9b395fc72819c6519 Mon Sep 17 00:00:00 2001 From: Jim Hague Date: Wed, 24 Jun 2020 22:06:25 +0100 Subject: [PATCH] Add system libraries when checking OpenSSL functions. If OpenSSL is a static library, linking the test programs will require system libraries. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d7c79e78..43d4d8e3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -335,7 +335,7 @@ check_include_file(openssl/rand.h HAVE_OPENSSL_RAND_H) check_include_file(openssl/conf.h HAVE_OPENSSL_CONF_H) check_include_file(openssl/engine.h HAVE_OPENSSL_ENGINE_H) -set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES}) +set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES} ${getdns_system_libs}) check_function_exists(DSA_SIG_set0 HAVE_DSA_SIG_SET0) check_function_exists(DSA_set0_pqg HAVE_DSA_SET0_PQG) check_function_exists(DSA_set0_key HAVE_DSA_SET0_KEY)