2024-09-20 21:26:57 +00:00
|
|
|
vcpkg_download_distfile(
|
|
|
|
WIN_PATCHES
|
|
|
|
URLS "https://github.com/xtensor-stack/xsimd/pull/1040/commits/e8cb862e434eb1e367afb83e1a3685bccff3e566.diff?full_index=1"
|
|
|
|
FILENAME "xsimd-e8cb862e434eb1e367afb83e1a3685bccff3e566.patch"
|
|
|
|
SHA512 e584033fb79c602a19222c177d5db28f9887dd17e741844d57f2236a5749ac4c02cc0740f8011ca990602887a6ee3dd21ae0b695455c447686b1a6c8bda2e092
|
|
|
|
)
|
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-06-22 05:33:05 +08:00
|
|
|
SHA512 cdc42ddad3353297cf25ea2b6b3f09967f5f388efc26241f2997979fdbbac072819ff771145bc5bfa86cb326cca84b4119e8e6e3f658407961cf203a40603a7f
|
2019-01-27 08:31:21 +08:00
|
|
|
HEAD_REF master
|
2024-09-20 21:26:57 +00:00
|
|
|
PATCHES
|
|
|
|
"${WIN_PATCHES}"
|
2019-01-27 08:31:21 +08:00
|
|
|
)
|
|
|
|
|
2019-08-13 20:13:55 -07:00
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
2022-11-14 23:28:09 +01:00
|
|
|
FEATURES
|
|
|
|
xcomplex ENABLE_XTL_COMPLEX
|
2019-08-13 20:13:55 -07: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 08:55:17 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-27 08:31:21 +08:00
|
|
|
OPTIONS
|
|
|
|
-DBUILD_TESTS=OFF
|
2019-08-13 20:13:55 -07:00
|
|
|
${FEATURE_OPTIONS}
|
2019-01-27 08:31:21 +08:00
|
|
|
)
|
|
|
|
|
2021-10-27 08:55:17 +02:00
|
|
|
vcpkg_cmake_install()
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2021-10-27 08:55:17 +02: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}")
|