vcpkg/ports/toml11/portfile.cmake

22 lines
686 B
CMake
Raw Normal View History

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
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
2024-04-02 04:47:39 +08:00
-DCMAKE_CXX_STANDARD=11
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/toml11)
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)