mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-28 04:39:00 +08:00
73408b1769
* [gz-cmake3] Fix export of static deps * [gz-cmake3,gz-common5] Revise package import * [gz-common5] Disable tests by config * [gz-cmake3,gz-common5] Revise deps patching * [gz-common5] Take care of pkg-config * [gz-common5] Check installed components * Finish
26 lines
1.2 KiB
CMake
26 lines
1.2 KiB
CMake
set(PACKAGE_NAME common)
|
|
|
|
ignition_modular_library(
|
|
NAME ${PACKAGE_NAME}
|
|
REF ${PORT}_${VERSION}
|
|
VERSION ${VERSION}
|
|
SHA512 40db4747db743005d7c43ca25cfe93cf68ee19201abcb165e72de37708b92fd88553b11520c420db33b37f4cab7e01e4d79c91c5dc0485146b7156284b8baaee
|
|
OPTIONS
|
|
-DBUILD_TESTING=OFF
|
|
-DUSE_EXTERNAL_TINYXML2=ON
|
|
"-DPKG_CONFIG_EXECUTABLE=${CURRENT_HOST_INSTALLED_DIR}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}"
|
|
PATCHES
|
|
gz_remotery_vis.patch
|
|
)
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/share/gz-common5-graphics/gz-common5-graphics-config.cmake" "find_package(GTS "
|
|
"# Ensure that consumers get a pkg-config tool which is needed for GTS
|
|
set(PKG_CONFIG_EXECUTABLE \"\${CMAKE_CURRENT_LIST_DIR}/../../../${HOST_TRIPLET}/tools/pkgconf/pkgconf${VCPKG_HOST_EXECUTABLE_SUFFIX}\" CACHE STRING vcpkg)
|
|
find_package(GTS ")
|
|
|
|
foreach(component IN ITEMS av events geospatial graphics io profiler testing)
|
|
if(NOT EXISTS "${CURRENT_PACKAGES_DIR}/share/${PORT}-${component}/${PORT}-${component}-config.cmake")
|
|
message(FATAL_ERROR "Failed to install component ${component}. Check configuration logs for missing dependencies.")
|
|
endif()
|
|
endforeach()
|