mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-03 07:59:02 +08:00
7ef97003d7
* aws-c-common from 0.6.9 -> 0.6.20 * aws-c-io from 0.10.7 -> 0.10.22
33 lines
1009 B
CMake
33 lines
1009 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO awslabs/aws-c-io
|
|
REF cfe553a770e9c2d1c93b8cdfb870b9f2a46b436e # v0.10.22
|
|
SHA512 7a741f5b1c895ceb11f73b67828fd3623c180cb8a3863f3b63a67ac1437d2c47911d50510777b13ee66fd0a009ab09a8c83fd036a0fca2f25a0835f48f023de7
|
|
HEAD_REF master
|
|
PATCHES fix-cmake-target-path.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
"-DCMAKE_MODULE_PATH=${CURRENT_INSTALLED_DIR}/share/aws-c-common" # use extra cmake files
|
|
-DBUILD_TESTING=FALSE
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/aws-c-io/cmake)
|
|
|
|
file(REMOVE_RECURSE
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
"${CURRENT_PACKAGES_DIR}/debug/lib/aws-c-io"
|
|
"${CURRENT_PACKAGES_DIR}/lib/aws-c-io"
|
|
)
|
|
|
|
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)
|