]>
Commit | Line | Data |
---|---|---|
1e59de90 TL |
1 | vcpkg_from_github( |
2 | OUT_SOURCE_PATH SOURCE_PATH | |
3 | REPO "CppMicroServices/CppMicroservices" | |
4 | REF b4d3d404df01d67dfd7fc36111bc5de50e1b89d6 # v3.4.0 | |
5 | SHA512 b4a55f7c86cae25e936a237108b82824458b123fa1c14d4e0218c72c444a6d7f0db8900409af321225ec818f5691894b01fd311c606463386e7ce8e81e3656c8 | |
6 | HEAD_REF development | |
7 | PATCHES | |
8 | werror.patch | |
9 | fix-dependency-gtest.patch | |
10 | fix-warning-c4834.patch | |
11 | ) | |
12 | ||
13 | vcpkg_configure_cmake( | |
14 | SOURCE_PATH ${SOURCE_PATH} | |
15 | PREFER_NINJA # Disable this option if project cannot be built with Ninja | |
16 | OPTIONS | |
17 | -DTOOLS_INSTALL_DIR:STRING=tools/cppmicroservices | |
18 | -DAUXILIARY_INSTALL_DIR:STRING=share/cppmicroservices | |
19 | -DUS_USE_SYSTEM_GTEST=TRUE | |
20 | ) | |
21 | ||
22 | vcpkg_install_cmake() | |
23 | ||
24 | file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include) | |
25 | ||
26 | vcpkg_fixup_cmake_targets() | |
27 | ||
28 | # Handle copyright | |
29 | file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) | |
30 | ||
31 | # CppMicroServices uses a custom resource compiler to compile resources | |
32 | # the zipped resources are then appended to the target which cause the linker to crash | |
33 | # when compiling a static library | |
34 | if(NOT BUILD_SHARED_LIBS) | |
35 | set(VCPKG_POLICY_EMPTY_PACKAGE enabled) | |
36 | endif() |