vcpkg/ports/soil2/portfile.cmake

27 lines
789 B
CMake
Raw Normal View History

vcpkg_from_github(
2019-03-07 03:32:25 +08:00
OUT_SOURCE_PATH SOURCE_PATH
REPO SpartanJ/soil2
REF 51023d551d895fb4beb576d726d798ccfe358d34
SHA512 5ce8b3f04eea674cdef7ee58778e81bcefa5df7afb1013ad28dcd2d502e26915529da8bf06b751b8c350165172866e4f99d4b1081bb6c7ba04ac83a78faba83c
2019-03-07 03:32:25 +08:00
HEAD_REF master
PATCHES Workaround-ICE-in-release.patch
2019-03-07 03:32:25 +08:00
)
file(
COPY
"${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt"
"${CMAKE_CURRENT_LIST_DIR}/LICENSE"
"${CMAKE_CURRENT_LIST_DIR}/soil2Config.cmake.in"
DESTINATION "${SOURCE_PATH}"
2019-03-07 03:32:25 +08:00
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2019-03-07 03:32:25 +08:00
OPTIONS_DEBUG -DINSTALL_HEADERS=OFF
)
vcpkg_cmake_install()
2019-03-07 03:32:25 +08:00
# Handle copyright
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)