comparison OrthancFramework/Resources/CMake/OpenSslConfiguration.cmake @ 4904:f2e78f7164d6

reintroduction of OpenSslConfigurationStatic-1.1.1.cmake for orthanc-gcp
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 21 Feb 2022 09:34:36 +0100
parents 6eff25f70121
children 77e20ce39d6f
comparison
equal deleted inserted replaced
4902:df86d2505df8 4904:f2e78f7164d6
18 # License along with this program. If not, see 18 # License along with this program. If not, see
19 # <http://www.gnu.org/licenses/>. 19 # <http://www.gnu.org/licenses/>.
20 20
21 21
22 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL) 22 if (STATIC_BUILD OR NOT USE_SYSTEM_OPENSSL)
23 if (OPENSSL_STATIC_VERSION STREQUAL "3.0") 23 if (OPENSSL_STATIC_VERSION STREQUAL "1.1.1")
24 # Still used by orthanc-gcp (Google Cloud Platform) as of its release 1.0
25 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-1.1.1.cmake)
26 elseif (OPENSSL_STATIC_VERSION STREQUAL "3.0")
24 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-3.0.cmake) 27 include(${CMAKE_CURRENT_LIST_DIR}/OpenSslConfigurationStatic-3.0.cmake)
25 else() 28 else()
26 message(FATAL_ERROR "Unsupported version of OpenSSL: ${OPENSSL_STATIC_VERSION}") 29 message(FATAL_ERROR "Unsupported version of OpenSSL: ${OPENSSL_STATIC_VERSION}")
27 endif() 30 endif()
28 31