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-11-07 12:39:53 +08:00
R E F c p p - $ { V E R S I O N }
S H A 5 1 2 3 b 6 4 6 0 5 9 7 4 b 6 4 3 8 4 6 1 9 c 0 7 a 4 8 9 5 f 8 c e b 5 6 2 4 3 0 4 6 b 5 c 9 4 1 3 4 5 5 9 4 d 7 0 b a f 3 a d 7 7 4 9 5 7 3 b 8 3 c 5 b 2 0 e 8 3 5 0 5 2 0 4 f c 1 9 0 5 d d b 0 a 7 d d e 1 c 5 1 0 9 e f 8 a 3 4 b 5 c 8 4 8 d 1 b b 0 7 3 9 4 6
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" )