vcpkg/ports/xtensor-io/portfile.cmake

26 lines
843 B
CMake
Raw Normal View History

2019-07-25 01:20:57 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xtensor-stack/xtensor-io
REF 2bc048b3f34731385f29e2f3b307103ee6d4e5ab # 0.12.8
SHA512 d7c5c85489aea9b9d8af7ee33a43dd8ab888e7f03da8b533ace39e143f89acbae4fe88bb10253931a3cc44041e1532bd76483686f7f20c00e2850647a574349c
2019-07-25 01:20:57 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
DISABLE_PARALLEL_CONFIGURE
2019-07-25 01:20:57 +08:00
OPTIONS
-DBUILD_TESTS=OFF
-DDOWNLOAD_GTEST=OFF
-DDOWNLOAD_GBENCHMARK=OFF
-DHAVE_HighFive=OFF
2019-07-25 01:20:57 +08:00
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
2019-07-25 01:20:57 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)