2020-01-22 02:03:57 +08:00
|
|
|
vcpkg_from_github(
|
2019-03-07 03:32:25 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO SpartanJ/soil2
|
2022-05-10 07:12:37 +08:00
|
|
|
REF ddcb35d13cc4129103de1c1a3cb74b828fe46b4a # 1.3.0
|
|
|
|
SHA512 627c7bf4fddd5afef85ba7634c5ec0e10005c700abc1eb07c6346c1604e430c34aa4c33f6ffecbecb3dc2b04de7b855a3f6d923e94f23621ae0184e706358908
|
2019-03-07 03:32:25 +08:00
|
|
|
HEAD_REF master
|
2022-05-10 07:12:37 +08:00
|
|
|
PATCHES Workaround-ICE-in-release.patch
|
2019-03-07 03:32:25 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
file(
|
|
|
|
COPY
|
2022-05-10 07:12:37 +08:00
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
|
|
|
|
"${CMAKE_CURRENT_LIST_DIR}/soil2Config.cmake.in"
|
|
|
|
DESTINATION "${SOURCE_PATH}"
|
2019-03-07 03:32:25 +08:00
|
|
|
)
|
|
|
|
|
2022-05-10 07:12:37 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-03-07 03:32:25 +08:00
|
|
|
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
|
|
|
|
)
|
|
|
|
|
2022-05-10 07:12:37 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-03-07 03:32:25 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-05-10 07:12:37 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|