2024-08-02 01:12:59 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
2020-09-12 03:48:05 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO jamesdbrock/hffix
|
2023-10-03 07:11:08 +08:00
|
|
|
REF "v${VERSION}"
|
2024-08-02 01:12:59 +08:00
|
|
|
SHA512 155c0e0bd57d952523343e94b0160baf3b20d366ff8260340d96c2ec4e638c94d192c08b7204303b0fa8610beb5c71046f62fa8b0212b477aaab88e49974cac1
|
2020-09-12 03:48:05 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-09-12 03:48:05 +08:00
|
|
|
)
|
2023-01-27 11:11:49 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH "lib/cmake/hffix")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2023-01-27 11:11:49 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2020-09-12 03:48:05 +08:00
|
|
|
|
2024-08-02 01:12:59 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|