2020-11-04 14:59:02 +08:00
if ( EXISTS "${CURRENT_INSTALLED_DIR}/include/openssl/ssl.h" )
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." )
endif ( )
set ( OPENSSL_VERSION 1.1.1h )
vcpkg_download_distfile ( ARCHIVE
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 "
S H A 5 1 2 d a 5 0 f d 9 9 3 2 5 8 4 1 e d 7 a 4 3 6 7 d 9 2 5 1 c 7 7 1 c e 5 0 5 a 4 4 3 a 7 3 b 3 2 7 d 8 a 4 6 b 2 c 6 a 7 d 2 e a 9 9 e 4 3 5 5 1 a 1 6 4 e f c 8 6 f 8 7 4 3 b 2 2 c 2 b d b 0 0 2 0 b f 2 4 a 9 c b d 4 4 5 e 9 d 6 8 8 6 8 b 2 d c 1 d 3 4 0 3 3 a
)
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" )
elseif ( VCPKG_TARGET_IS_WINDOWS )
include ( "${CMAKE_CURRENT_LIST_DIR}/windows/portfile.cmake" )
else ( )
include ( "${CMAKE_CURRENT_LIST_DIR}/unix/portfile.cmake" )
endif ( )
file ( INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/" )