2021-04-20 08:21:59 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO gulrak/filesystem
|
2021-11-16 06:33:10 +08:00
|
|
|
REF v1.5.10
|
2021-04-20 08:21:59 +08:00
|
|
|
HEAD_REF master
|
2021-11-16 06:33:10 +08:00
|
|
|
SHA512 470dd9e1c4358f9d8d9f531d8c3c6716cdd156c815315748436a1dc3caf095d320e58eae2274df8c15e293cc96170752fb00aed8ad2210d417b174c13297fbac
|
2021-04-20 08:21:59 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2021-11-16 06:33:10 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-04-20 08:21:59 +08:00
|
|
|
OPTIONS
|
|
|
|
-DGHC_FILESYSTEM_BUILD_TESTING=OFF
|
|
|
|
-DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF
|
|
|
|
-DGHC_FILESYSTEM_WITH_INSTALL=ON
|
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
2021-05-04 01:52:53 +08:00
|
|
|
vcpkg_cmake_config_fixup(
|
|
|
|
PACKAGE_NAME ghc_filesystem
|
|
|
|
CONFIG_PATH lib/cmake/ghc_filesystem
|
|
|
|
)
|
2021-04-20 08:21:59 +08:00
|
|
|
|
2021-11-16 06:33:10 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|