2019-01-26 05:44:47 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xtl
|
2023-05-11 02:11:05 +08:00
|
|
|
REF "${VERSION}"
|
2024-03-12 04:06:16 +08:00
|
|
|
SHA512 07c2a68db3dbac556dbb0397e54792ddc7a3e87573bff04faa4262dc433b710392ff9c915d428f5abd1ae892ac9bc7744645e75fdb2bb2cee83c523e087c793e
|
2019-01-26 05:44:47 +08:00
|
|
|
HEAD_REF master
|
2021-06-11 07:02:29 +08:00
|
|
|
PATCHES
|
|
|
|
fix-fixup-cmake.patch
|
2019-01-26 05:44:47 +08:00
|
|
|
)
|
|
|
|
|
2024-03-12 04:06:16 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-26 05:44:47 +08:00
|
|
|
OPTIONS
|
2019-05-06 14:19:09 +08:00
|
|
|
-DBUILD_TESTS=OFF
|
2019-01-26 05:44:47 +08:00
|
|
|
-DDOWNLOAD_GTEST=OFF
|
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2024-03-12 04:06:16 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/xtl)
|
2021-06-11 07:02:29 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-05-11 02:11:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|