2021-02-11 15:56:13 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO fastfloat/fast_float
|
2023-04-20 05:33:43 +08:00
|
|
|
REF "v${VERSION}"
|
2023-12-28 16:01:47 +08:00
|
|
|
SHA512 37280efebea7aa33cc25c8d8375b6c9456a8025d29d618abb5aac580c025097a6110ec3a913d1504fd9af1df43e434bc5411e07e38dd66c12491f3edc7374fff
|
2021-02-11 15:56:13 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-08-30 02:56:28 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
2021-11-20 14:21:35 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2023-08-30 02:56:28 +08:00
|
|
|
OPTIONS
|
|
|
|
-DFASTFLOAT_INSTALL=ON
|
2021-02-11 15:56:13 +08:00
|
|
|
)
|
|
|
|
|
2021-11-20 14:21:35 +08:00
|
|
|
vcpkg_cmake_install()
|
2022-09-02 00:22:25 +08:00
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME FastFloat CONFIG_PATH share/cmake/FastFloat)
|
2021-02-11 15:56:13 +08:00
|
|
|
|
2023-08-30 02:56:28 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE-APACHE" "${SOURCE_PATH}/LICENSE-BOOST" "${SOURCE_PATH}/LICENSE-MIT")
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|