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}"
|
|
|
|
SHA512 fb447334f68f255d7d28c9202eee2cec70d007c1031f3756a6acd0cc019c0d95ed1d12ec63f2e9fb3df184f9ec305e6a3c808bb88c1e3eb922916ad059d2e856
|
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
|
|
|
)
|
|
|
|
|
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
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2021-06-11 07:02:29 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2023-03-02 02:39:29 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-01-26 05:44:47 +08:00
|
|
|
|
2023-05-11 02:11:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|