mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:29:08 +08:00
6db51d86a9
If a call to `vcpkg_replace_string` makes no changes i.e doesn't effectively replace a string, A warning is logged. This should also help identify ports that no longer need these calls to fix things in `.pc` files etc.
27 lines
1.2 KiB
CMake
27 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 "
|
|
IGNORE_UNCHANGED)
|
|
|
|
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()
|