2018-03-12 14:41:51 +08:00
|
|
|
if(CMAKE_HOST_WIN32)
|
|
|
|
vcpkg_acquire_msys(MSYS_ROOT PACKAGES make)
|
|
|
|
set(BASH ${MSYS_ROOT}/usr/bin/bash.exe)
|
|
|
|
set(MAKE ${MSYS_ROOT}/usr/bin/make.exe)
|
|
|
|
else()
|
|
|
|
find_program(MAKE make)
|
2018-03-21 20:26:19 +08:00
|
|
|
if(NOT MAKE)
|
|
|
|
message(FATAL_ERROR "Could not find make. Please install it through your package manager.")
|
|
|
|
endif()
|
2018-03-12 14:41:51 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DSOURCE_PATH=${MASTER_COPY_SOURCE_PATH}
|
|
|
|
-DPERL=${PERL}
|
|
|
|
-DMAKE=${MAKE}
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
-DINSTALL_HEADERS=ON
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(GLOB HEADERS ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/*/include/openssl/*.h)
|
|
|
|
set(RESOLVED_HEADERS)
|
|
|
|
foreach(HEADER ${HEADERS})
|
|
|
|
get_filename_component(X "${HEADER}" REALPATH)
|
|
|
|
list(APPEND RESOLVED_HEADERS "${X}")
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
file(INSTALL ${RESOLVED_HEADERS} DESTINATION ${CURRENT_PACKAGES_DIR}/include/openssl)
|
|
|
|
file(INSTALL ${MASTER_COPY_SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/openssl RENAME copyright)
|