summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Bychko <abychko@gmail.com>2020-02-26 13:01:18 +0700
committerOleksandr Byelkin <sanja@mariadb.com>2020-02-26 07:48:05 +0100
commit8382f106916b8369b8e903d24dbd7233b48ceb80 (patch)
tree86997e121e1fdb52af9ebe16f8cc0e28529db271
parent42b29d41335d2f6991b8c9f110fe1e1476764ace (diff)
downloadmariadb-git-8382f106916b8369b8e903d24dbd7233b48ceb80.tar.gz
MENT-606 Error while setting value 'aes_ctr' to 'file-key-management-encryption-algorithm'
cmake cannot detect openssl headers on Mac during checks. the solution is to add path to openssl includes to CMAKE_REQUIRED_INCLUDES before checks.
-rw-r--r--cmake/ssl.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake
index b00250cf367..d87d2c8fbd0 100644
--- a/cmake/ssl.cmake
+++ b/cmake/ssl.cmake
@@ -147,6 +147,7 @@ MACRO (MYSQL_CHECK_SSL)
SET(SSL_DEFINES "-DHAVE_OPENSSL")
SET(CMAKE_REQUIRED_LIBRARIES ${SSL_LIBRARIES})
+ SET(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
CHECK_SYMBOL_EXISTS(ERR_remove_thread_state "openssl/err.h"
HAVE_ERR_remove_thread_state)
CHECK_SYMBOL_EXISTS(EVP_aes_128_ctr "openssl/evp.h"