2018-06-26 12:43:00 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ThePhD/sol2
|
2022-06-28 02:47:49 +08:00
|
|
|
REF eba86625b707e3c8c99bbfc4624e51f42dc9e561 #v3.3.0
|
|
|
|
SHA512 a1fbcb4efd9a8b8b97c351e90499644aea72a3db62c258e219a2912853936b76870b51e69d835c14cbf1a20733673ba474e259a0243fec419c411b995cd1511d
|
2018-06-26 12:43:00 +08:00
|
|
|
HEAD_REF develop
|
2019-09-26 20:43:46 +08:00
|
|
|
PATCHES fix-namespace.patch
|
2018-06-26 12:43:00 +08:00
|
|
|
)
|
|
|
|
|
2022-06-28 02:47:49 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-06-26 12:43:00 +08:00
|
|
|
)
|
|
|
|
|
2022-06-28 02:47:49 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/sol2)
|
2018-06-26 12:43:00 +08:00
|
|
|
|
2019-10-31 09:13:43 +08:00
|
|
|
file(
|
|
|
|
REMOVE_RECURSE
|
2022-06-28 02:47:49 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/include"
|
2019-10-31 09:13:43 +08:00
|
|
|
)
|
|
|
|
|
2022-06-28 02:47:49 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/include/sol" DESTINATION "${CURRENT_PACKAGES_DIR}/include/")
|
2018-06-26 12:43:00 +08:00
|
|
|
|
2022-06-28 02:47:49 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|