mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 15:28:59 +08:00
02fa0eb4c6
* [openssl] Add cmake wrapper to handle OPENSSL_ROOT_DIR * Get the abs path * update version record * apply suggestion. * Clean up openssl related code, move to openssl wrapper. * update version record * [kf5holidays] Disable parallel configure * update version record * update version record * bump version * Update versions/o-/openssl.json * update baseline * Update ports/openssl/vcpkg-cmake-wrapper.cmake * Update ports/openssl/vcpkg-cmake-wrapper.cmake * Update versions/o-/openssl.json * Update ports/openssl/vcpkg.json * Update versions/o-/openssl.json * Update ports/openssl/vcpkg.json * Update versions/o-/openssl.json * update version record
26 lines
1.2 KiB
CMake
26 lines
1.2 KiB
CMake
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.1k)
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "https://www.openssl.org/source/openssl-${OPENSSL_VERSION}.tar.gz" "https://www.openssl.org/source/old/1.1.1/openssl-${OPENSSL_VERSION}.tar.gz"
|
|
FILENAME "openssl-${OPENSSL_VERSION}.tar.gz"
|
|
SHA512 73cd042d4056585e5a9dd7ab68e7c7310a3a4c783eafa07ab0b560e7462b924e4376436a6d38a155c687f6942a881cfc0c1b9394afcde1d8c46bf396e7d51121
|
|
)
|
|
|
|
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 AND NOT VCPKG_TARGET_IS_MINGW)
|
|
include("${CMAKE_CURRENT_LIST_DIR}/windows/portfile.cmake")
|
|
else()
|
|
include("${CMAKE_CURRENT_LIST_DIR}/unix/portfile.cmake")
|
|
endif()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|