2018-02-03 04:37:22 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO BlueBrain/HighFive
|
2023-10-03 07:10:52 +08:00
|
|
|
REF "v${VERSION}"
|
2024-01-27 01:43:12 +08:00
|
|
|
SHA512 568fb58956ce8d218fd33a6fe5b519436ce296cdcf87b5620eb2af224b9e39f8f99008f3baff9a7024bbdb4052e5c47bb514091d2afd652abd28949e9096b6f1
|
2018-02-03 04:37:22 +08:00
|
|
|
HEAD_REF master
|
2023-02-28 04:35:03 +08:00
|
|
|
PATCHES
|
2021-12-11 06:06:16 +08:00
|
|
|
fix-error-C1128.patch
|
2018-02-03 04:37:22 +08:00
|
|
|
)
|
|
|
|
|
2021-06-10 06:26:03 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
boost HIGHFIVE_USE_BOOST
|
|
|
|
tests HIGHFIVE_UNIT_TESTS
|
|
|
|
xtensor HIGHFIVE_USE_XTENSOR
|
2021-12-11 06:06:16 +08:00
|
|
|
eigen3 HIGHFIVE_USE_EIGEN
|
2020-09-05 22:19:43 +08:00
|
|
|
)
|
|
|
|
|
2023-10-04 11:38:06 +08:00
|
|
|
if(HDF5_WITH_PARALLEL)
|
|
|
|
message(STATUS "${HDF5_WITH_PARALLEL} Enabling HIGHFIVE_PARALLEL_HDF5.")
|
|
|
|
list(APPEND FEATURE_OPTIONS "-DHIGHFIVE_PARALLEL_HDF5=ON")
|
|
|
|
endif()
|
|
|
|
|
2021-06-10 06:26:03 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-12-11 06:06:16 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2024-01-27 01:43:12 +08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2018-02-03 04:37:22 +08:00
|
|
|
OPTIONS
|
2020-09-05 22:19:43 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-02-03 04:37:22 +08:00
|
|
|
-DHIGHFIVE_EXAMPLES=OFF
|
2021-06-10 06:26:03 +08:00
|
|
|
-DHIGHFIVE_BUILD_DOCS=OFF
|
2023-10-04 11:38:06 +08:00
|
|
|
-DCMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE=PRE_TEST
|
|
|
|
MAYBE_UNUSED_VARIABLES
|
|
|
|
CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE
|
2017-08-25 02:14:49 +08:00
|
|
|
)
|
|
|
|
|
2023-10-04 11:38:06 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-06-10 06:26:03 +08:00
|
|
|
|
2020-09-05 22:19:43 +08:00
|
|
|
if("tests" IN_LIST FEATURES)
|
|
|
|
vcpkg_copy_tools(
|
2023-02-28 04:35:03 +08:00
|
|
|
TOOL_NAMES
|
2020-09-05 22:19:43 +08:00
|
|
|
tests_high_five_base
|
|
|
|
tests_high_five_easy
|
|
|
|
tests_high_five_multi_dims
|
|
|
|
SEARCH_DIR "${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/tests/unit" # Tools are not installed so release version tools are manually copied
|
|
|
|
)
|
|
|
|
endif()
|
2018-02-03 04:37:22 +08:00
|
|
|
|
2023-10-04 11:38:06 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/HighFive/CMake)
|
|
|
|
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/HighFive/HighFiveConfig.cmake")
|
|
|
|
# left over with mixed case
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/HighFive")
|
|
|
|
endif()
|
2018-02-03 04:37:22 +08:00
|
|
|
|
2021-12-11 06:06:16 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2018-02-03 04:37:22 +08:00
|
|
|
|
2023-10-04 11:38:06 +08:00
|
|
|
file(INSTALL "${CURRENT_PORT_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|