2020-01-03 05:44:54 +08:00
|
|
|
|
2018-09-18 17:07:27 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO google/fruit
|
2020-10-14 04:17:32 +08:00
|
|
|
REF 29c9fd265cfa72ee72fb64257fe4b72198d87264 # v3.6.0
|
|
|
|
SHA512 1a8f5b126492dd81fe40bbedd0ead839fd25dac6ea569dd51879e288a4c5850c6618754547ac201d82875781ee0490261372df7a0d1cf50e90c3a9b9da9aaed4
|
2018-09-18 17:07:27 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
# TODO: Make boost an optional dependency?
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA
|
|
|
|
OPTIONS
|
|
|
|
-DFRUIT_USES_BOOST=False
|
2020-01-03 05:44:54 +08:00
|
|
|
-DFRUIT_TESTS_USE_PRECOMPILED_HEADERS=OFF
|
2018-09-18 17:07:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
# Handle copyright
|
2020-01-03 05:44:54 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|