mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 03:39:06 +08:00
a6cb7292c4
* [many ports]switch to vcpkg-cmake / vckg-cmake-config * version * Missing changes * version * typo * version * typo * version * fix typo * version * deprecate vcpkg_extract_source_archive_ex * version * fix arguments * version --------- Co-authored-by: jyu49 <yu_jack@apple.com>
35 lines
1.1 KiB
CMake
35 lines
1.1 KiB
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO CppMicroServices/CppMicroservices
|
|
REF v3.6.0
|
|
SHA512 C1407E1D3C2FD31675C32D8C00F7D005C09B03A835D5B09411B0043DDEAF5E3A1A0C7A5FA34FA04D5A643169D222D0E8D3A3C31CDA69FB64CDF1A8CCA276BE18
|
|
HEAD_REF development
|
|
PATCHES
|
|
werror.patch
|
|
fix-dependency-gtest.patch
|
|
fix-warning-c4834.patch
|
|
)
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
OPTIONS
|
|
-DTOOLS_INSTALL_DIR:STRING=tools/cppmicroservices
|
|
-DAUXILIARY_INSTALL_DIR:STRING=share/cppmicroservices
|
|
-DUS_USE_SYSTEM_GTEST=TRUE
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
# Handle copyright
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
# 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)
|
|
endif() |