2020-02-12 08:39:59 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ToruNiina/toml11
|
2024-04-02 04:47:39 +08:00
|
|
|
REF "v${VERSION}"
|
2024-08-20 00:30:41 +08:00
|
|
|
SHA512 acb29d37150e5752526cf0a38ae7f207fcfd142d3c78d280e706ad404b2d32f5bae6d44d6ce13cc0bdfd3b0fa4a0a94cf732d70b1fd2a01c3c517fee8a4ef05b
|
2020-02-12 08:39:59 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2021-10-18 14:27:04 -07:00
|
|
|
vcpkg_cmake_configure(
|
2022-04-26 02:26:05 +02:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-11-25 19:23:45 +00:00
|
|
|
OPTIONS
|
2024-04-02 04:47:39 +08:00
|
|
|
-DCMAKE_CXX_STANDARD=11
|
2020-11-25 19:23:45 +00:00
|
|
|
)
|
2021-10-18 14:27:04 -07:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/toml11)
|
2020-11-25 19:23:45 +00:00
|
|
|
|
2021-10-18 14:27:04 -07:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
|
|
|
# Handle copyright
|
2024-06-22 05:17:00 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|