2019-07-07 05:44:54 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
2021-09-28 12:06:58 +08:00
|
|
|
REPO CppMicroServices/CppMicroservices
|
|
|
|
REF v3.6.0
|
|
|
|
SHA512 C1407E1D3C2FD31675C32D8C00F7D005C09B03A835D5B09411B0043DDEAF5E3A1A0C7A5FA34FA04D5A643169D222D0E8D3A3C31CDA69FB64CDF1A8CCA276BE18
|
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
|
2020-12-18 13:20:39 +08:00
|
|
|
fix-warning-c4834.patch
|
2019-07-07 05:44:54 +08:00
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_configure(
|
2021-09-28 12:06:58 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2019-07-07 05:44:54 +08:00
|
|
|
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
|
|
|
)
|
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_install()
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2021-09-28 12:06:58 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2023-03-07 07:44:04 +08:00
|
|
|
vcpkg_cmake_config_fixup()
|
2019-07-07 05:44:54 +08:00
|
|
|
|
2020-02-05 06:46:24 +08:00
|
|
|
# Handle copyright
|
2021-09-28 12:06:58 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2020-02-05 06:46:24 +08:00
|
|
|
|
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()
|