2020-08-01 07:49:53 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO marzer/tomlplusplus
|
2022-06-08 19:45:59 +08:00
|
|
|
REF v3.1.0
|
|
|
|
SHA512 b5223fa978b606f6b14fa74495884ccd491fa6017ef44b2ac9a384fa1df7100745145163e2a139255927fb51e5ecd779ee2643c19579eab6e4533b15e75c9be9
|
2020-08-01 07:49:53 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_meson(
|
2021-11-30 09:18:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2021-09-16 08:49:49 +08:00
|
|
|
OPTIONS
|
2020-10-13 06:25:08 +08:00
|
|
|
-Dgenerate_cmake_config=true
|
|
|
|
-Dbuild_tests=false
|
|
|
|
-Dbuild_examples=false
|
2020-08-01 07:49:53 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_meson()
|
2022-06-08 19:45:59 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/cmake/tomlplusplus)
|
2021-11-30 09:23:48 +08:00
|
|
|
cmake_path(NATIVE_PATH SOURCE_PATH native_source_path)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/tomlplusplus/tomlplusplusConfig.cmake" "${native_source_path}" "")
|
2020-08-01 07:49:53 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
2022-06-08 19:45:59 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
2020-08-01 07:49:53 +08:00
|
|
|
|
2022-06-08 19:45:59 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|