2023-04-27 22:25:13 +00:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
2024-05-21 22:13:01 +00:00
|
|
|
message("Warning: `glaze` requires Clang15+ or GCC 12+ on Linux")
|
2023-04-27 22:25:13 +00:00
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO stephenberry/glaze
|
|
|
|
REF "v${VERSION}"
|
2024-10-08 03:11:38 +08:00
|
|
|
SHA512 ddc90ddb1af4f485a899b2ecb360ebb8d39d0b54b08b79ce4f79898c7fab624f70f57711e22e99381eff42e2576048eba00d8bfb42e4d60c836e299930983f03
|
2024-08-16 09:31:49 +08:00
|
|
|
HEAD_REF main
|
2023-04-27 22:25:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2023-07-31 20:25:53 +02:00
|
|
|
-Dglaze_DEVELOPER_MODE=OFF
|
2024-08-16 09:31:49 +08:00
|
|
|
-Dglaze_BUILD_EXAMPLES=OFF
|
2023-04-27 22:25:13 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_install()
|
2023-07-31 20:25:53 +02:00
|
|
|
vcpkg_cmake_config_fixup()
|
2023-04-27 22:25:13 +00:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
2023-09-07 06:43:20 +00:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|