diff options
| author | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-03-29 23:06:20 +0200 |
|---|---|---|
| committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2010-03-29 23:06:20 +0200 |
| commit | c6fab4bf844023f88098c5941a70a33d378663e5 (patch) | |
| tree | 45c3223c8608a90a9920df29e661bb369085493b | |
| parent | 7d1dcb0dffce968770d715d371fc855f46909438 (diff) | |
Fix openssl detection in cmake
| -rw-r--r-- | CMakeLists.txt | 4 | ||||
| -rw-r--r-- | ConfigureChecks.cmake | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 0c194b86..1309a497 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,12 +52,12 @@ if (WITH_GCRYPT) endif (NOT GCRYPT_FOUND) else (WITH_GCRYPT) find_package(OpenSSL) - if (NOT CRYPTO_FOUND) + if (NOT OPENSSL_FOUND) find_package(GCrypt) if (NOT GCRYPT_FOUND) message(FATAL_ERROR "Could not find OpenSSL or GCrypt") endif (NOT GCRYPT_FOUND) - endif (NOT CRYPTO_FOUND) + endif (NOT OPENSSL_FOUND) endif(WITH_GCRYPT) # config.h checks diff --git a/ConfigureChecks.cmake b/ConfigureChecks.cmake index 066c9f45..d3dec1ab 100644 --- a/ConfigureChecks.cmake +++ b/ConfigureChecks.cmake @@ -86,9 +86,9 @@ endif (UNIX) set(LIBSSH_REQUIRED_LIBRARIES ${CMAKE_REQUIRED_LIBRARIES} CACHE INTERNAL "libssh required system libraries") # LIBRARIES -if (CRYPTO_FOUND) +if (OPENSSL_FOUND) set(HAVE_LIBCRYPTO 1) -endif (CRYPTO_FOUND) +endif (OPENSSL_FOUND) if (GCRYPT_FOUND) set(HAVE_LIBGCRYPT 1) |
