2019-07-07 05:44:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO "CppMicroServices/CppMicroservices"
|
2020-01-11 06:40:12 +08:00
|
|
|
REF b4d3d404df01d67dfd7fc36111bc5de50e1b89d6 # v3.4.0
|
|
|
|
SHA512 b4a55f7c86cae25e936a237108b82824458b123fa1c14d4e0218c72c444a6d7f0db8900409af321225ec818f5691894b01fd311c606463386e7ce8e81e3656c8
|
2019-07-07 05:44:54 +08:00
|
|
|
HEAD_REF development
|
2020-02-05 06:46:24 +08:00
|
|
|
PATCHES
|
|
|
|
werror.patch
|
|
|
|
fix-dependency-gtest.patch
|
2019-07-07 05:44:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
PREFER_NINJA # Disable this option if project cannot be built with Ninja
|
|
|
|
OPTIONS
|
|
|
|
-DTOOLS_INSTALL_DIR:STRING=tools/cppmicroservices
|
|
|
|
-DAUXILIARY_INSTALL_DIR:STRING=share/cppmicroservices
|
2020-02-05 06:46:24 +08:00
|
|
|
-DUS_USE_SYSTEM_GTEST=TRUE
|
2019-07-07 05:44:54 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
|
|
|
|
|
|
|
|
|
|
vcpkg_fixup_cmake_targets()
|
|
|
|
|
2020-02-05 06:46:24 +08:00
|
|
|
# Handle copyright
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
|
|
|
|
2019-07-07 05:44:54 +08:00
|
|
|
# CppMicroServices uses a custom resource compiler to compile resources
|
|
|
|
# the zipped resources are then appended to the target which cause the linker to crash
|
|
|
|
# when compiling a static library
|
|
|
|
if(NOT BUILD_SHARED_LIBS)
|
|
|
|
set(VCPKG_POLICY_EMPTY_PACKAGE enabled)
|
2020-02-05 06:46:24 +08:00
|
|
|
endif()
|