From 8c6ae75bef0504e850f8674340d5cfb3ca21e78b Mon Sep 17 00:00:00 2001 From: Vyacheslav Yurkov Date: Sat, 27 Aug 2022 11:53:28 +0200 Subject: protobuf: disable protoc binary for target When applications want to use protoc during the build, the target binary has to be disabled in order to avoid following error: | The imported target "protobuf::protoc" references the file | | "/recipe-sysroot/usr/bin/protoc-" | | but this file does not exist. Possible reasons include: | | * The file was deleted, renamed, or moved to another location. | | * An install or uninstall procedure did not complete successfully. | | * The installation package was faulty and contained | | "/recipe-sysroot/usr/lib/cmake/protobuf/protobuf-targets.cmake" | | but not all the files it references. Signed-off-by: Vyacheslav Yurkov Signed-off-by: Khem Raj --- meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-oe/recipes-devtools') diff --git a/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb b/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb index 88bef2c06d..0bc9cbedc0 100644 --- a/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb +++ b/meta-oe/recipes-devtools/protobuf/protobuf_3.21.5.bb @@ -25,7 +25,9 @@ S = "${WORKDIR}/git" inherit cmake pkgconfig ptest PACKAGECONFIG ??= "" +PACKAGECONFIG:class-native ?= "compiler" PACKAGECONFIG[python] = ",," +PACKAGECONFIG[compiler] = "-Dprotobuf_BUILD_PROTOC_BINARIES=ON,-Dprotobuf_BUILD_PROTOC_BINARIES=OFF" EXTRA_OECMAKE += "\ -Dprotobuf_BUILD_SHARED_LIBS=ON \ -- cgit v1.2.3-54-g00ecf