2022-01-21 06:15:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2022-08-26 21:15:49 +02:00
|
|
|
REPO idealvin/coost
|
2023-01-07 17:17:52 +08:00
|
|
|
REF 43a8bb4c8fceafe8a86752f522f744301d2b8a7f #v3.0.0
|
|
|
|
SHA512 e34c65853d4280412219d35f55a745e20475474bb59c208562b78edf49bc54852ea1e5d58d7a4bb8bf771f8c51c4eae1ad7426902a32b99c3ee5358bb9426740
|
2022-01-21 06:15:22 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_CRT_LINKAGE}" "static" STATIC_CRT)
|
|
|
|
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
2022-08-26 21:15:49 +02:00
|
|
|
libcurl WITH_LIBCURL
|
|
|
|
openssl WITH_OPENSSL
|
2022-01-21 06:15:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-08-26 21:15:49 +02:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2022-01-21 06:15:22 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DSTATIC_VS_CRT=${STATIC_CRT}
|
2022-08-26 21:15:49 +02:00
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
STATIC_VS_CRT
|
2022-01-21 06:15:22 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-01-07 17:17:52 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/coost)
|
2022-01-21 06:15:22 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/include"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/debug/share"
|
|
|
|
)
|
|
|
|
|
2023-01-10 20:26:33 +01:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-01-21 06:15:22 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|