2020-09-03 00:12:41 +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 ( )
2017-08-04 08:07:15 +08:00
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
2023-04-04 00:53:46 +08:00
R E F c p p - 6 . 0 . 0
S H A 5 1 2 6 f 2 e c 7 4 5 6 2 f 3 0 d 1 2 b a 8 1 6 5 9 7 3 7 c 4 1 2 3 1 7 8 4 8 e b 2 7 f b c 6 0 7 a 2 f 4 f 8 d a 4 b 7 5 5 3 4 f b f b a 7 d 2 8 0 a 5 a f 6 f d a e 3 5 8 1 a 6 a 2 5 8 2 e 6 c f 0 6 d 7 f b f a c c 3 b d e e 1 1 7 4 4 5 6 8 1 7 d d 9 f 7 e 3 0
H E A D _ R E F c p p _ m a s t e r
2019-10-08 01:35:13 +08:00
)
2017-03-11 22:32:14 +08:00
2023-03-02 02:39:14 +08:00
vcpkg_cmake_configure (
S O U R C E _ P A T H " $ { S O U R C E _ P A T H } "
2017-08-04 08:07:15 +08:00
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
2023-03-21 02:33:03 +08:00
- D M S G P A C K _ B U I L D _ T E S T S = O F F
- D M S G P A C K _ B U I L D _ D O C S = O F F
)
2017-03-11 22:32:14 +08:00
2023-03-02 02:39:14 +08:00
vcpkg_cmake_install ( )
2017-03-11 22:32:14 +08:00
vcpkg_copy_pdbs ( )
2023-04-04 00:53:46 +08:00
vcpkg_cmake_config_fixup ( PACKAGE_NAME msgpack-cxx CONFIG_PATH lib/cmake/msgpack-cxx )
2017-03-11 22:32:14 +08:00
2023-03-21 02:33:03 +08:00
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug" )
file ( REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib" )
2021-10-28 06:19:28 +08:00
2023-03-21 02:33:03 +08:00
vcpkg_install_copyright ( FILE_LIST "${SOURCE_PATH}/COPYING" )