summaryrefslogtreecommitdiff
path: root/cmake/ssl.cmake
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-02-27 19:20:18 +0100
committerVladislav Vaintroub <wlad@montyprogram.com>2012-02-27 19:20:18 +0100
commit3ebb4b883370da9528b7482b8ba4ed9521f07553 (patch)
tree317df6a325229e869ab1e5d3bc9d08f374d89cde /cmake/ssl.cmake
parentf0c682858f26efcebabb558068aa567eed44632e (diff)
downloadmariadb-git-3ebb4b883370da9528b7482b8ba4ed9521f07553.tar.gz
because of the high cost associated with fake symdir resolution, disable symbolic-links on Windows by default. Real symlinks (Vista+) as well as NTFS junctions (prior to Vista) do not require this parameter
Diffstat (limited to 'cmake/ssl.cmake')
-rw-r--r--cmake/ssl.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/ssl.cmake b/cmake/ssl.cmake
index 001be69e62f..b5b94310d29 100644
--- a/cmake/ssl.cmake
+++ b/cmake/ssl.cmake
@@ -69,8 +69,10 @@ MACRO (MYSQL_CHECK_SSL)
FIND_LIBRARY(CRYPTO_LIBRARY crypto)
MARK_AS_ADVANCED(CRYPTO_LIBRARY)
INCLUDE(CheckSymbolExists)
+ SET(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
CHECK_SYMBOL_EXISTS(SHA512_DIGEST_LENGTH "openssl/sha.h"
HAVE_SHA512_DIGEST_LENGTH)
+ SET(CMAKE_REQUIRED_INCLUDES)
IF(OPENSSL_FOUND AND CRYPTO_LIBRARY AND HAVE_SHA512_DIGEST_LENGTH)
SET(SSL_SOURCES "")
SET(SSL_LIBRARIES ${OPENSSL_LIBRARIES} ${CRYPTO_LIBRARY})