2023-04-28 06:25:13 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2023-12-12 17:43:50 +08:00
|
|
|
message("Warning: `glaze` requires Clang or GCC 11+ on Linux")
|
2023-04-28 06:25:13 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO stephenberry/glaze
|
|
|
|
REF "v${VERSION}"
|
2024-02-22 14:02:53 +08:00
|
|
|
SHA512 1b2bc9b587e48bf47f5ddb7b39f3bf405a70687a6a0d9e68388eb6c2ea26a0cb5aca668986b43260d7edc96f3bc224aa74477f6e2a21f2e05a4ddda201224a9e
|
2023-04-28 06:25:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-08-01 02:25:53 +08:00
|
|
|
-Dglaze_DEVELOPER_MODE=OFF
|
2023-04-28 06:25:13 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-08-01 02:25:53 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2023-04-28 06:25:13 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2023-09-07 14:43:20 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|