vcpkg/ports/xtensor/portfile.cmake

38 lines
1.1 KiB
CMake
Raw Normal View History

2019-01-27 08:44:25 +08:00
# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xtensor-stack/xtensor
REF 0.24.3
SHA512 3519541ce659d800dca386cdbb4c7aa5331e5297779239230cbfb78b22c541af22a98aae30a9e8604ee855378fa8e67be720dab1e0005135575d9738e64797c8
2019-01-27 08:44:25 +08:00
HEAD_REF master
)
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
FEATURES
xsimd XTENSOR_USE_XSIMD
tbb XTENSOR_USE_TBB
)
2019-01-27 08:44:25 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-01-27 08:44:25 +08:00
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}
2019-01-27 08:44:25 +08:00
)
vcpkg_cmake_install()
2019-01-27 08:44:25 +08:00
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
2019-01-27 08:44:25 +08:00
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
2019-01-27 08:44:25 +08:00
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)