2020-02-12 08:39:59 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ToruNiina/toml11
|
2022-04-26 02:26:05 +02:00
|
|
|
REF v3.7.1
|
|
|
|
SHA512 a4710972ab9b1ff836b2191243d628e0c4672fbfe95ede50c49796aaa75bb05d3ac71164102651d5c7342a4ac88781dfe417957b8b8ce373989f627231966550
|
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
|
|
|
|
-Dtoml11_BUILD_TEST=OFF
|
|
|
|
)
|
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
|
|
|
|
|
|
|
vcpkg_replace_string(
|
2021-10-18 14:27:04 -07:00
|
|
|
"${CURRENT_PACKAGES_DIR}/share/toml11/toml11Config.cmake"
|
2020-11-25 19:23:45 +00:00
|
|
|
"\${PACKAGE_PREFIX_DIR}/lib/cmake/toml11/toml11Targets.cmake"
|
|
|
|
"\${PACKAGE_PREFIX_DIR}/share/toml11/toml11Targets.cmake"
|
|
|
|
)
|
|
|
|
|
2021-10-18 14:27:04 -07:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
|
|
|
|
|
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|