2019-07-25 01:20:57 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xtensor-io
|
2021-12-14 03:56:08 +08:00
|
|
|
REF ffada938383b0f24c9e0b07cea7d5780057e1d96 # 0.13.0
|
2021-12-15 04:57:42 +08:00
|
|
|
SHA512 ce5d085e500ef7043eb51538cab9a53c857983ac43e392cd65958c76fcde3ddb00161097cb70d334fa7d12af12e8109bb958b51f39afd9eeb60bb3421424058e
|
2019-07-25 01:20:57 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-09-08 22:56:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-07 04:57:25 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-07-25 01:20:57 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DDOWNLOAD_GTEST=OFF
|
|
|
|
-DDOWNLOAD_GBENCHMARK=OFF
|
2021-09-08 22:56:56 +08:00
|
|
|
-DHAVE_HighFive=OFF
|
2019-07-25 01:20:57 +08:00
|
|
|
)
|
|
|
|
|
2021-09-08 22:56:56 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2021-11-05 03:57:43 +08:00
|
|
|
|
|
|
|
foreach(bit "64" "32" "")
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/xtensor-io/xtensor_io_config.hpp" "#pragma cling add_library_path(\"${CURRENT_PACKAGES_DIR}/lib${bit}\")" "")
|
|
|
|
endforeach()
|
|
|
|
|
2021-09-08 22:56:56 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-07-25 01:20:57 +08:00
|
|
|
|
2021-09-08 22:56:56 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|