2020-01-23 05:07:27 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ar90n/msgpack11
|
|
|
|
REF v0.0.10
|
|
|
|
SHA512 7b90893f9cdec529789f6e75703f5945c6fc5c946b8708a7a2cb295faf4af111c8cc61265b636f385641031b85181929205be9c5d155f405909445dce85b4ce8
|
|
|
|
HEAD_REF master
|
|
|
|
PATCHES
|
2020-05-27 13:13:00 +08:00
|
|
|
msvc.patch
|
|
|
|
fix-additerator.patch
|
2021-07-15 03:46:05 +08:00
|
|
|
disable-werror.patch
|
2020-01-23 05:07:27 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-23 05:07:27 +08:00
|
|
|
OPTIONS
|
2021-07-15 03:46:05 +08:00
|
|
|
-DMSGPACK11_BUILD_TESTS=OFF
|
|
|
|
-DMSGPACK11_BUILD_EXAMPLES=OFF
|
2020-01-23 05:07:27 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-23 05:07:27 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-07-15 03:46:05 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2023-03-02 02:39:14 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|