vcpkg/ports/tomlplusplus/portfile.cmake
Lily Wang 4a311457c3
[tomlplusplus] Update to 3.3.0 (#33835)
* [tomlplusplus] update to 3.3.0

* update version

* fix android error

* update version

* update patch

* update version
2023-09-26 00:31:49 -07:00

24 lines
686 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO marzer/tomlplusplus
REF "v${VERSION}"
SHA512 6ab2de83b7fc44de40e58a47c28a9507bf7c50fa9b08925b5a6d48958868a86e6790aff684d29ceb50ad18905e3832840719e1b7bfec3b8a0c00b15bb0f70f38
HEAD_REF master
PATCHES
fix-android-fileapi.patch
)
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dgenerate_cmake_config=false
-Dbuild_tests=false
-Dbuild_examples=false
)
vcpkg_install_meson()
vcpkg_fixup_pkgconfig()
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")