vcpkg/ports/tomlplusplus/portfile.cmake
Lisa Ong 304b9a0268
Enable tomlplusplus port for OSX and ARM (#21742)
* enabled osx builds now that https://github.com/microsoft/vcpkg/issues/6645 is fixed

* updated port version since upsteam was unchanged

* update version database

* Delete vcpkg_fail_port_install call.

* Unblock arm.

Co-authored-by: Lisa Ong <>
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
2021-11-29 17:18:21 -08:00

25 lines
737 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO marzer/tomlplusplus
REF v2.5.0
SHA512 7394cda2009b37e88f9028ee5d1887120bed7042833c7cb218d7705cdc92273c81a84163ff0be034d3f23c8dd93e63b7615134a4b0e1c580e1e945fae45c7d35
HEAD_REF master
)
vcpkg_configure_meson(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-Dgenerate_cmake_config=true
-Dbuild_tests=false
-Dbuild_examples=false
)
vcpkg_install_meson()
vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/${PORT})
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug"
"${CURRENT_PACKAGES_DIR}/lib")
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)