aboutsummaryrefslogtreecommitdiff
path: root/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2015-09-25 12:00:25 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2015-09-25 12:00:25 +0200
commit0409a302bb1ba1afd0bdc418c0012c8857edd7d7 (patch)
treec1456ea85567defdd9bd6cd7f62594b602fa17f2 /ConfigureChecks.cmake
parent84a85803b4c83b8dac03b0d0aba58b48c98253e6 (diff)
downloadlibssh-0409a302bb1ba1afd0bdc418c0012c8857edd7d7.tar.gz
libssh-0409a302bb1ba1afd0bdc418c0012c8857edd7d7.tar.xz
libssh-0409a302bb1ba1afd0bdc418c0012c8857edd7d7.zip
cmake: fix EVP detection with gcc
Diffstat (limited to 'ConfigureChecks.cmake')
-rw-r--r--ConfigureChecks.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake
index 0d068b9c..c175e0bf 100644
--- a/ConfigureChecks.cmake
+++ b/ConfigureChecks.cmake
@@ -92,11 +92,11 @@ if (OPENSSL_FOUND)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
- check_symbol_exists(EVP_aes_128_ctr openssl/evp.h HAVE_OPENSSL_EVP_AES_CTR)
+ check_function_exists(EVP_aes_128_ctr HAVE_OPENSSL_EVP_AES_CTR)
set(CMAKE_REQUIRED_INCLUDES ${OPENSSL_INCLUDE_DIR})
set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_CRYPTO_LIBRARY})
- check_symbol_exists(EVP_aes_128_cbc openssl/evp.h HAVE_OPENSSL_EVP_AES_CBC)
+ check_function_exists(EVP_aes_128_cbc HAVE_OPENSSL_EVP_AES_CBC)
endif()