vcpkg/ports/range-v3/portfile.cmake
Christopher Di Bella c6d69984ed
updates range-v3 (#12346)
Tip-of-trunk range-v3 more closely resembles C++20.
2020-07-09 10:23:13 -07:00

28 lines
794 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO ericniebler/range-v3
REF a7f58f8ab7d1260aca66151009ae072d0980c7c7
SHA512 f0f4980e5e6cf9cc6911760685dbd90395568934688a7f3307171e5460e4d351e116c72051a74a124c9f84235a1ed201d4b80ed647355b0fddfc8f1f19829fcd
HEAD_REF master
)
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
OPTIONS
-DRANGE_V3_TESTS=OFF
-DRANGE_V3_EXAMPLES=OFF
-DRANGE_V3_PERF=OFF
-DRANGE_V3_HEADER_CHECKS=OFF
)
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/range-v3)
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
vcpkg_copy_pdbs()
file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)