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
2024-05-23 14:49:55 +08:00
R E F c p p - 6 . 1 . 1
S H A 5 1 2 8 6 6 9 5 0 d 6 e 3 c 6 e b d 8 8 6 e 7 6 d 1 6 7 e d 5 f 8 8 5 4 4 c 3 a 2 c e 4 8 4 5 b f 0 b 0 8 7 5 2 e d d 4 0 f 4 5 3 1 8 a 8 0 8 d 5 b 2 a 7 0 f f 6 4 6 7 1 b e b 8 3 c 4 9 f 5 6 8 c f 3 5 b 8 6 c 1 3 b b 3 f f c 2 a 6 c 9 0 7 2 4 4 6 6 e 5 3 e 4 d
2023-04-04 00:53:46 +08:00
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
2024-05-23 14:49:55 +08:00
vcpkg_check_features ( OUT_FEATURE_OPTIONS FEATURE_OPTIONS
F E A T U R E S
b o o s t M S G P A C K _ U S E _ B O O S T
)
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
2024-05-23 14:49:55 +08:00
$ { F E A T U R E _ O P T I O N S }
2023-03-21 02:33:03 +08:00
)
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" )