2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO nemtrif/utfcpp
|
2022-12-30 15:51:16 +08:00
|
|
|
REF v${VERSION}
|
2023-09-19 00:20:11 +08:00
|
|
|
SHA512 5135b13a03ee814cb35e04459b2d91b8fbe91cd518a604c41062b4ad42b739fce1acf946b01904309e0edffb874f5e81f69d28afdc8b6f759ef2d675ca0c0db0
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2016-10-20 02:35:24 +08:00
|
|
|
)
|
|
|
|
|
2022-09-27 02:25:11 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-10-14 05:46:28 +08:00
|
|
|
OPTIONS
|
|
|
|
-DUTF8_INSTALL=ON
|
|
|
|
-DUTF8_SAMPLES=OFF
|
|
|
|
-DUTF8_TESTS=OFF
|
|
|
|
)
|
|
|
|
|
2022-09-27 02:25:11 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-10-14 05:46:28 +08:00
|
|
|
|
2022-09-27 02:25:11 +08:00
|
|
|
if (VCPKG_TARGET_IS_WINDOWS AND NOT VCPKG_TARGET_IS_MINGW)
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME utf8cpp CONFIG_PATH cmake)
|
2020-10-14 05:46:28 +08:00
|
|
|
else()
|
2022-09-27 02:25:11 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME utf8cpp CONFIG_PATH lib/cmake/utf8cpp)
|
2020-10-14 05:46:28 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
# Header only
|
2022-09-27 02:25:11 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2020-05-20 06:13:17 +08:00
|
|
|
|
2022-12-30 15:51:16 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|