vcpkg/ports/xtl/portfile.cmake

26 lines
732 B
CMake
Raw Normal View History

# header-only library
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO xtensor-stack/xtl
REF 81e467fe31751a220d0c106e4108b5de85311d06 # 0.6.18
SHA512 974f5d2526bbe1d18bd5dc247bf7c203f8210b38effe8c1cb8cea3acc25053cca9a3a63e06799b2ba1a63700961393fb90babd83bafac4330c1282fffec7a2ae
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DBUILD_TESTS=OFF
-DDOWNLOAD_GTEST=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)