mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 16:21:47 +08:00
45 lines
1.2 KiB
CMake
45 lines
1.2 KiB
CMake
|
vcpkg_from_github(
|
||
|
OUT_SOURCE_PATH SOURCE_PATH
|
||
|
REPO awslabs/aws-c-cal
|
||
|
REF aa89aa4950074babe84762413f39bd364ecaf944 # v0.5.11
|
||
|
SHA512 b92ae3cb14d26dfe48cb903df56f7df91a4dc0ab2e5ea4f095c72b0b7e0a2582f1324c73eb42c080bcb0a59a3dfc37cd2912037fc8e5f7df8433899749fca63c
|
||
|
HEAD_REF master
|
||
|
PATCHES fix-cmake-target-path.patch
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_configure(
|
||
|
SOURCE_PATH "${SOURCE_PATH}"
|
||
|
PREFER_NINJA
|
||
|
OPTIONS
|
||
|
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
||
|
)
|
||
|
|
||
|
vcpkg_cmake_install()
|
||
|
|
||
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-cal/cmake)
|
||
|
|
||
|
vcpkg_copy_tools(
|
||
|
TOOL_NAMES sha256_profile
|
||
|
AUTO_CLEAN
|
||
|
)
|
||
|
|
||
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
||
|
file(REMOVE_RECURSE
|
||
|
"${CURRENT_PACKAGES_DIR}/bin"
|
||
|
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
||
|
)
|
||
|
endif()
|
||
|
|
||
|
file(REMOVE_RECURSE
|
||
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
||
|
"${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-cal"
|
||
|
"${CURRENT_PACKAGES_DIR}/lib/aws-c-cal"
|
||
|
)
|
||
|
|
||
|
vcpkg_copy_pdbs()
|
||
|
|
||
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
||
|
|
||
|
# Handle copyright
|
||
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|