vcpkg/ports/aws-c-io/portfile.cmake
Jia Yue Hua 1ec00d26ba
[aws-c-auth,aws-c-io,aws-c-s3,aws-c-sdkutils,aws-sdk-cpp] update to 0.7.14,0.14.3,0.5.0,0.1.14,1.11.255 (#36566)
* [aws-c-auth] update to 0.7.14

* [aws-c-auth] update to 0.7.14

* [aws-c-io] update to 0.14.3

* [aws-c-io] update to 0.14.3

* [aws-c-s3] update to 0.5.0

* [aws-c-s3] update to 0.5.0

* [aws-c-sdkutils] update to 0.1.14

* [aws-c-sdkutils] update to 0.1.14

* [aws-sdk-cpp] update to 1.11.255

* [aws-sdk-cpp] update to 1.11.255
2024-02-05 11:24:11 -08:00

33 lines
1.1 KiB
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO awslabs/aws-c-io
REF "v${VERSION}"
SHA512 bb8666853abbd583aea2f30099fe947562809ccab36ae11708c118b5bd6a7876b8d94ef45bb988b44c4dd1dc76e6dff70adb7a20b8b5d89d2d7ea2138b3ecea8
HEAD_REF master
)
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()
string(REPLACE "dynamic" "shared" subdir "${VCPKG_LIBRARY_LINKAGE}")
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake/${subdir}" DO_NOT_DELETE_PARENT_CONFIG_PATH)
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/${PORT}/cmake")
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" [[/${type}/]] "/")
file(REMOVE_RECURSE
"${CURRENT_PACKAGES_DIR}/debug/include"
"${CURRENT_PACKAGES_DIR}/debug/lib/${PORT}"
"${CURRENT_PACKAGES_DIR}/debug/share"
"${CURRENT_PACKAGES_DIR}/lib/${PORT}"
)
vcpkg_copy_pdbs()
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")