2023-03-25 13:49:53 +08:00
if ( EXISTS ${ CURRENT_INSTALLED_DIR } /include/msgpack/pack.h )
message ( FATAL_ERROR "Cannot install ${PORT} when rest-rpc is already installed, please remove rest-rpc using \" ./vcpkg remove rest-rpc: ${ TARGET_TRIPLET } \"")
endif ( )
vcpkg_from_github (
O U T _ S O U R C E _ P A T H S O U R C E _ P A T H
R E P O m s g p a c k / m s g p a c k - c
2024-10-15 15:25:25 +08:00
R E F " c - $ { V E R S I O N } "
S H A 5 1 2 b 2 1 1 a f 1 2 2 e 8 9 4 b c 0 c 3 2 f a 0 2 e b c c 0 1 3 0 a c 7 9 7 d 9 9 b 7 c 6 0 6 8 8 d f 2 6 2 4 7 b c 0 2 0 d 5 1 b 7 3 2 2 b 4 8 5 8 f d 1 2 a 7 4 9 d 2 8 8 1 2 c 5 e f b 6 6 b 5 d c 6 8 7 c d f e 2 0 f 4 b c 6 8 a 2 1 e b 4 8 4 d 5 3 1 2 3 0 a
2023-03-25 13:49:53 +08:00
H E A D _ R E F c _ m a s t e r
)
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
O P T I O N S
- D M S G P A C K _ B U I L D _ E X A M P L E S = O F F
- D M S G P A C K _ B U I L D _ T E S T S = O F F
)
vcpkg_cmake_install ( )
vcpkg_copy_pdbs ( )
vcpkg_cmake_config_fixup ( PACKAGE_NAME msgpack-c CONFIG_PATH lib/cmake/msgpack-c )
vcpkg_fixup_pkgconfig ( )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" )
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )