2020-09-02 09:12:41 -07: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 02:07:15 +02: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
2020-09-09 20:38:04 -07:00
R E F c p p - 3 . 3 . 0
S H A 5 1 2 3 3 e d 8 7 b 2 3 d 7 7 6 c a d c c 2 3 0 6 6 6 e 6 4 3 5 0 8 8 e 4 0 2 c 5 8 1 3 e 7 e 4 d c e 5 c e 7 9 c 8 c 3 a c e b a 5 a 3 6 d b 8 f 3 9 5 2 7 8 0 4 2 c 6 a c 4 4 c 4 7 4 b 3 3 0 1 8 f f 1 6 3 5 8 8 9 d 8 b 2 0 b c 4 1 c 5 f 6 f 1 d 1 c 9 6 3 c a e
2019-10-07 19:35:13 +02:00
H E A D _ R E F m a s t e r
)
2017-03-11 17:32:14 +03:00
if ( VCPKG_LIBRARY_LINKAGE STREQUAL static )
set ( MSGPACK_ENABLE_SHARED OFF )
2017-08-04 02:07:15 +02:00
set ( MSGPACK_ENABLE_STATIC ON )
2017-03-11 17:32:14 +03:00
else ( )
set ( MSGPACK_ENABLE_SHARED ON )
2017-08-04 02:07:15 +02:00
set ( MSGPACK_ENABLE_STATIC OFF )
2017-03-11 17:32:14 +03:00
endif ( )
vcpkg_configure_cmake (
S O U R C E _ P A T H $ { S O U R C E _ P A T H }
P R E F E R _ N I N J A
2017-08-04 02:07:15 +02:00
O P T I O N S
- D M S G P A C K _ E N A B L E _ S H A R E D = $ { M S G P A C K _ E N A B L E _ S H A R E D }
- D M S G P A C K _ E N A B L E _ S T A T I C = $ { M S G P A C K _ E N A B L E _ S T A T I C }
- 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 )
2017-03-11 17:32:14 +03:00
vcpkg_install_cmake ( )
vcpkg_copy_pdbs ( )
2017-08-04 02:07:15 +02:00
vcpkg_fixup_cmake_targets ( CONFIG_PATH lib/cmake/msgpack )
2017-03-11 17:32:14 +03:00
file ( REMOVE_RECURSE ${ CURRENT_PACKAGES_DIR } /debug/include )
file ( COPY ${ SOURCE_PATH } /COPYING DESTINATION ${ CURRENT_PACKAGES_DIR } /share/msgpack )
file ( RENAME ${ CURRENT_PACKAGES_DIR } /share/msgpack/COPYING ${ CURRENT_PACKAGES_DIR } /share/msgpack/copyright )
2021-10-28 00:19:28 +02:00
vcpkg_fixup_pkgconfig ( )