mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 10:21:07 +08:00
[range-v3] Update. Use ericniebler/range-v3 even for Windows
This commit is contained in:
parent
60eca2d4cd
commit
70cf49fac2
@ -1,4 +1,3 @@
|
||||
Source: range-v3
|
||||
Version: 0.3.5
|
||||
Build-Depends: range-v3-vs2015 (windows), range-v3-vs2015 (uwp)
|
||||
Version: 0.4.0- 7f2eb04
|
||||
Description: Range library for C++11/14/17.
|
||||
|
@ -1,36 +1,31 @@
|
||||
include(vcpkg_common_functions)
|
||||
|
||||
if(VCPKG_CMAKE_SYSTEM_NAME STREQUAL "WindowsStore" OR NOT VCPKG_CMAKE_SYSTEM_NAME)
|
||||
message("The current range-v3 releases are not compatible with the current MSVC releases.")
|
||||
message("The latest available range-v3 fork compatible with MSVC will be used instead.")
|
||||
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
||||
else()
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ericniebler/range-v3
|
||||
REF 0.3.5
|
||||
SHA512 0b8b97c32760f19e7a3f35b0f28b0c15c7735fbd1aa54f685c58faf50bf2cf112aed4ac7cfa9154b9caf7047400a6c7fd5c33d978f2e3cec6bc392a758aeabad
|
||||
HEAD_REF master
|
||||
)
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO ericniebler/range-v3
|
||||
REF 7f2eb04e62e44074ddae64ba3715bc800f7c317b
|
||||
SHA512 118e4bdba0ade864967ca56f82c7b26cfb6767c483844ffb9995b5e860533d365f91f6795b227e78a228569a2280e995c6d23feac5c493ad7718b6ae00d40eed
|
||||
HEAD_REF master
|
||||
)
|
||||
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DRANGE_V3_NO_TESTING=ON
|
||||
-DRANGE_V3_NO_EXAMPLE=ON
|
||||
-DRANGE_V3_NO_PERF=ON
|
||||
-DRANGE_V3_NO_HEADER_CHECK=ON
|
||||
)
|
||||
vcpkg_configure_cmake(
|
||||
SOURCE_PATH ${SOURCE_PATH}
|
||||
PREFER_NINJA
|
||||
OPTIONS
|
||||
-DRANGE_V3_TESTS=ON
|
||||
-DRANGE_V3_EXAMPLES=ON
|
||||
-DRANGE_V3_PERF=ON
|
||||
-DRANGE_V3_HEADER_CHECKS=ON
|
||||
-DRANGES_CXX_STD=17
|
||||
)
|
||||
|
||||
vcpkg_install_cmake()
|
||||
vcpkg_install_cmake()
|
||||
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/range-v3)
|
||||
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/range-v3)
|
||||
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug ${CURRENT_PACKAGES_DIR}/lib)
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_copy_pdbs()
|
||||
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright)
|
||||
endif()
|
||||
file(COPY ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/range-v3)
|
||||
file(RENAME ${CURRENT_PACKAGES_DIR}/share/range-v3/LICENSE.txt ${CURRENT_PACKAGES_DIR}/share/range-v3/copyright)
|
Loading…
x
Reference in New Issue
Block a user