2023-04-28 06:25:13 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2024-05-22 06:13:01 +08:00
|
|
|
message("Warning: `glaze` requires Clang15+ or GCC 12+ 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-11-23 07:25:29 +08:00
|
|
|
SHA512 0db97a633e532aabbd597005fd210f78acd42551a154e51aac1d7980ddff5afa38defc59931b11fd7147178e78d986812c7e0c54ff3c3cbf63092f17dd3ceba8
|
2024-08-16 09:31:49 +08:00
|
|
|
HEAD_REF main
|
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
|
2024-08-16 09:31:49 +08:00
|
|
|
-Dglaze_BUILD_EXAMPLES=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")
|