2019-01-27 08:31:21 +08:00
|
|
|
# header-only library
|
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2020-01-07 04:57:25 +08:00
|
|
|
REPO xtensor-stack/xsimd
|
2021-10-27 14:55:17 +08:00
|
|
|
REF 8.0.3
|
|
|
|
SHA512 4c93eea5c5ba7c72f718d7d404b9630850e0805d2698d472b964e4de765678801b369ce1da5e53372f28944f5f647a7ac162995f92535a820c6f4fc9defa7e5f
|
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
|
|
|
|
xcomplex ENABLE_XTL_COMPLEX
|
|
|
|
)
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-01-27 08:31:21 +08:00
|
|
|
OPTIONS
|
|
|
|
-DENABLE_FALLBACK=OFF
|
|
|
|
-DBUILD_TESTS=OFF
|
|
|
|
-DDOWNLOAD_GTEST=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
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
2019-01-27 08:31:21 +08:00
|
|
|
|
2021-10-27 14:55:17 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|