comparison OrthancFramework/Resources/CMake/OpenSslConfiguration.cmake @ 4703:c832cb6ef4f9 openssl-3.x

Dropped support for static compilation of OpenSSL 1.0.2 and 1.1.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 22 Jun 2021 07:17:43 +0200
parents 312e0e29de90
children 2e71a08eea15
comparison
equal deleted inserted replaced
4702:312e0e29de90 4703:c832cb6ef4f9
17 # License along with this program. If not, see 17 # License along with this program. If not, see
18 # <http://www.gnu.org/licenses/>. 18 # <http://www.gnu.org/licenses/>.
19 19
20 20
21 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL) 21 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL)
22 if (OPENSSL_STATIC_VERSION STREQUAL "1.0.2") 22 if (OPENSSL_STATIC_VERSION STREQUAL "3.0")
23 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-1.0.2.cmake)
24 elseif (OPENSSL_STATIC_VERSION STREQUAL "1.1.1")
25 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-1.1.1.cmake)
26 elseif (OPENSSL_STATIC_VERSION STREQUAL "3.0")
27 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-3.0.cmake) 23 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-3.0.cmake)
28 else() 24 else()
29 message(FATAL_ERROR "Unsupported version of OpenSSL: ${OPENSSL_STATIC_VERSION}") 25 message(FATAL_ERROR "Unsupported version of OpenSSL: ${OPENSSL_STATIC_VERSION}")
30 endif() 26 endif()
31 27