2023-04-28 06:25:13 +08:00
|
|
|
if(VCPKG_TARGET_IS_LINUX)
|
|
|
|
message("Warning: `glaze` requires Clang or GCC 10+ on Linux")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO stephenberry/glaze
|
|
|
|
REF "v${VERSION}"
|
2023-09-26 15:02:41 +08:00
|
|
|
SHA512 9e55a36b12c4edea9ceb49f6e438d2b63e0633a20c649ae4c9df70e80cca72e8be6433ea53df31885f3a7f9cf01ad527eb210e58d830cd86738b1a80c72ad54d
|
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")
|