# HG changeset patch # User Sebastien Jodogne # Date 1614107126 -3600 # Node ID 59b667dd58a84faa82cc980deb784c9fbefe0993 # Parent 8262ffb393ffe4919aaf081f44f1e498572df159 fix cross-compilation for big endian on Debian 10 diff -r 8262ffb393ff -r 59b667dd58a8 OrthancFramework/Resources/CMake/OpenSslConfiguration.cmake --- a/OrthancFramework/Resources/CMake/OpenSslConfiguration.cmake Tue Feb 23 15:19:40 2021 +0100 +++ b/OrthancFramework/Resources/CMake/OpenSslConfiguration.cmake Tue Feb 23 20:05:26 2021 +0100 @@ -41,10 +41,15 @@ if (NOT HAVE_OPENSSL_CRYPTO_LIB) message(FATAL_ERROR "Please install the libopenssl package") endif() - + + # The "SSL_library_init" is for OpenSSL <= 1.0.2, whereas + # "OPENSSL_init_ssl" is for OpenSSL >= 1.1.0 CHECK_LIBRARY_EXISTS(ssl "SSL_library_init" "" HAVE_OPENSSL_SSL_LIB) if (NOT HAVE_OPENSSL_SSL_LIB) - message(FATAL_ERROR "Please install the libopenssl package") + CHECK_LIBRARY_EXISTS(ssl "OPENSSL_init_ssl" "" HAVE_OPENSSL_SSL_LIB_2) + if (NOT HAVE_OPENSSL_SSL_LIB_2) + message(FATAL_ERROR "Please install the libopenssl package") + endif() endif() link_libraries(crypto ssl)