2020-04-17 02:56:36 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ryanhaining/cppitertools
|
2021-08-10 00:04:38 +08:00
|
|
|
REF 539a5be8359c4330b3f88ed1821f32bb5c89f5f6
|
|
|
|
SHA512 cab0cb8a6b711824c13ca013b3349b9decb84f2dab6305bfb1bdd013f7426d5b199c127dadabeaaafc2e7ff6ad442222dd0fffee9aaacfa27d3aeb82c344ae4f
|
2020-04-17 02:56:36 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-04-17 02:56:36 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dcppitertools_INSTALL_CMAKE_DIR=share
|
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-04-17 02:56:36 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE
|
2023-03-07 07:44:04 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/share/cppitertools-config-version.cmake")
|
2020-04-17 02:56:36 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-07 07:44:04 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.md"
|
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/share/cppitertools"
|
2020-04-17 02:56:36 +08:00
|
|
|
RENAME copyright)
|