2020-01-28 05:50:46 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO zeroc-ice/mcpp
|
|
|
|
REF e6abf9a561294b667bb931b80cf749c9be2d1a2f
|
|
|
|
SHA512 131b68401683bcfb947ac4969a59aa4c1683412c30f76c50e9e9c5c952a881b9950127db2ef22c96968d8c90d26bcdb5a90fb1b77d4dda7dee67bfe4a2676b35
|
|
|
|
HEAD_REF master
|
2020-09-25 06:15:06 +08:00
|
|
|
PATCHES
|
|
|
|
0001-fix-_POSIX_C_SOURCE.patch
|
2020-01-28 05:50:46 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-01-28 05:50:46 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2020-01-28 05:50:46 +08:00
|
|
|
|
|
|
|
file(
|
|
|
|
INSTALL
|
2023-03-08 06:14:52 +08:00
|
|
|
"${SOURCE_PATH}/mcpp_lib.h"
|
|
|
|
"${SOURCE_PATH}/mcpp_out.h"
|
2020-01-28 05:50:46 +08:00
|
|
|
DESTINATION
|
2023-03-08 06:14:52 +08:00
|
|
|
"${CURRENT_PACKAGES_DIR}/include"
|
2020-01-28 05:50:46 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2020-01-28 05:50:46 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|