2020-11-04 07:59:02 +01:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h" )
2022-01-07 10:22:37 -08:00
message ( FATAL_ERROR "Can't build openssl if libressl/boringssl is installed. Please remove libressl/boringssl, and try install openssl again if you need it." )
2020-11-04 07:59:02 +01:00
endif ( )
2022-03-17 07:05:23 +02:00
set ( OPENSSL_VERSION 1.1.1n )
2022-01-07 10:22:37 -08:00
vcpkg_download_distfile (
A R C H I V E
2020-11-04 07:59:02 +01:00
U R L S " h t t p s : / / w w w . o p e n s s l . o r g / s o u r c e / o p e n s s l - $ { O P E N S S L _ V E R S I O N } . t a r . g z " " h t t p s : / / w w w . o p e n s s l . o r g / s o u r c e / o l d / 1 . 1 . 1 / o p e n s s l - $ { O P E N S S L _ V E R S I O N } . t a r . g z "
F I L E N A M E " o p e n s s l - $ { O P E N S S L _ V E R S I O N } . t a r . g z "
2022-03-17 07:05:23 +02:00
S H A 5 1 2 1 9 3 7 7 9 6 7 3 6 6 1 3 d c f 4 1 0 5 a 5 4 e 4 2 e c b 6 1 f 9 5 a 1 c e a 7 4 6 7 7 1 5 6 f 9 4 5 9 a e a 0 f 2 c 9 5 1 5 9 3 5 9 e 7 6 6 0 8 9 6 3 2 b f 3 6 4 e e 6 b 0 d 2 8 d 6 6 1 e b 9 9 5 7 b c e 8 f e c c 9 d 2 4 3 6 3 7 8 d 8 d 7 9 e 8 d 0 a 4
2020-11-04 07:59:02 +01:00
)
vcpkg_find_acquire_program ( PERL )
get_filename_component ( PERL_EXE_PATH ${ PERL } DIRECTORY )
vcpkg_add_to_path ( "${PERL_EXE_PATH}" )
if ( VCPKG_TARGET_IS_UWP )
include ( "${CMAKE_CURRENT_LIST_DIR}/uwp/portfile.cmake" )
2021-10-27 07:48:21 +02:00
include ( "${CMAKE_CURRENT_LIST_DIR}/install-pc-files.cmake" )
2020-11-10 06:21:03 +07:00
elseif ( VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW )
2020-11-04 07:59:02 +01:00
include ( "${CMAKE_CURRENT_LIST_DIR}/windows/portfile.cmake" )
2021-10-27 07:48:21 +02:00
include ( "${CMAKE_CURRENT_LIST_DIR}/install-pc-files.cmake" )
2020-11-04 07:59:02 +01:00
else ( )
include ( "${CMAKE_CURRENT_LIST_DIR}/unix/portfile.cmake" )
endif ( )
2021-07-23 13:11:45 +08:00
configure_file ( "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake.in" "${CURRENT_PACKAGES_DIR}/share/${PORT}/vcpkg-cmake-wrapper.cmake" @ONLY )
2020-12-11 17:40:21 -08:00
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" )