2020-08-01 07:49:53 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO marzer/tomlplusplus
|
2021-09-16 08:49:49 +08:00
|
|
|
REF v2.5.0
|
|
|
|
SHA512 7394cda2009b37e88f9028ee5d1887120bed7042833c7cb218d7705cdc92273c81a84163ff0be034d3f23c8dd93e63b7615134a4b0e1c580e1e945fae45c7d35
|
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()
|
2021-11-30 09:23:48 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
|
|
|
|
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()
|
|
|
|
|
2020-10-13 06:25:08 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
|
|
|
|
"${CURRENT_PACKAGES_DIR}/lib")
|
2020-08-01 07:49:53 +08:00
|
|
|
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|