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
2019-08-02 05:10:29 +04:30
R E F c p p - 3 . 2 . 0
S H A 5 1 2 6 9 8 f c d d 5 b 4 2 7 3 7 3 9 9 7 d 0 c 8 9 f f 2 c d 0 9 c 4 4 c f 3 b 1 6 5 d e f d 3 8 1 f f 3 c d 9 e 1 4 e c b 8 3 8 4 1 0 6 4 7 5 4 a 4 2 a a b 9 9 4 4 1 a 3 b 1 7 a a 2 6 e 3 d a e c 8 f 8 3 e 4 0 d 6 d 4 8 2 c 4 b 4 4 3 b 2 1 b 3 1 3 2 7 8 d 1 4
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 )