2019-01-27 08:31:21 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xsimd
|
2023-05-11 02:11:05 +08:00
|
|
|
REF "${VERSION}"
|
2024-03-12 04:04:11 +08:00
|
|
|
SHA512 8e45a8e9b28358d5f20f713ea19a8c366edc62790c27984149f283dfe808d78a549c8ec465e8b3677d7e30b2cb80093908de364bbb9dc80683f5fdfb843131e1
|
2019-01-27 08:31:21 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2019-08-14 11:13:55 +08:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2022-11-15 06:28:09 +08:00
|
|
|
FEATURES
|
|
|
|
xcomplex ENABLE_XTL_COMPLEX
|
2019-08-14 11:13:55 +08:00
|
|
|
)
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2023-08-08 00:04:53 +08:00
|
|
|
set(VCPKG_BUILD_TYPE release) # header-only port
|
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-27 08:31:21 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
2019-08-14 11:13:55 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2019-01-27 08:31:21 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2023-08-08 00:04:53 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2023-05-11 02:11:05 +08:00
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
2023-08-08 00:04:53 +08:00
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|