grpc: fix installed CMake package
[AGL/meta-agl-demo.git] / recipes-devtools / grpc / grpc_agldemo.inc
1 FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
2
3 SRC_URI += "file://0001-cmake-add-separate-export-for-plugin-targets.patch"
4
5 do_install:append() {
6     # The gRPC package version seems to get clobbered in its CMake
7     # package (seemingly with the c-ares version), but the root cause
8     # is not obvious and the issue is not present with newer versions
9     # of things in kirkstone.  So for now just fix the version to
10     # avoid mismatch errors.
11     sed -i "s/^set(PACKAGE_VERSION \"1\.16\.1\")$/set(PACKAGE_VERSION \"${PV}\")/" ${D}/${libdir}/cmake/${BPN}/gRPCConfigVersion.cmake
12 }