mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-05 09:33:58 +08:00
4ea49a1cf8
* [xtensor] update to 0.23.9 * update version * [xtl] update to 0.7.2 * update version * update patch * update version * Update ports/xtl/portfile.cmake * update version Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
39 lines
1.1 KiB
CMake
39 lines
1.1 KiB
CMake
# header-only library
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO xtensor-stack/xtensor
|
|
REF f3c11b2d810159e7063daddeaa0764f4006e5a73 # 0.23.10
|
|
SHA512 85d94a3e346a13f8d802260e7b182a34f83ed7adddb5c082f10fdaac995ba5b895ea20daf33ac99d3f44e9eb95fdc4ec051eb006259258c4c2ae762c5f08399f
|
|
HEAD_REF master
|
|
)
|
|
|
|
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
FEATURES
|
|
xsimd XTENSOR_USE_XSIMD
|
|
tbb XTENSOR_USE_TBB
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
PREFER_NINJA
|
|
OPTIONS
|
|
-DXTENSOR_ENABLE_ASSERT=OFF
|
|
-DXTENSOR_CHECK_DIMENSION=OFF
|
|
-DBUILD_TESTS=OFF
|
|
-DBUILD_BENCHMARK=OFF
|
|
-DDOWNLOAD_GTEST=OFF
|
|
-DDOWNLOAD_GBENCHMARK=OFF
|
|
-DDEFAULT_COLUMN_MAJOR=OFF
|
|
-DDISABLE_VS2017=OFF
|
|
${FEATURE_OPTIONS}
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|