On Sat, Aug 27, 2022 at 1:00 AM Vyacheslav Yurkov <uvv.mail@...> wrote:
From: Vyacheslav Yurkov <Vyacheslav.Yurkov@...>
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 | | "<application build dir>/recipe-sysroot/usr/bin/protoc-<protobuf version>" | | 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 | | "<application build dir>/recipe-sysroot/usr/lib/cmake/protobuf/protobuf-targets.cmake" | | but not all the files it references.
+# Configuration below allows to cross-compile protobuf applications +# and use native protoc binary in your recipes. In order to use protoc +# on the target, set protobuf_BUILD_PROTOC_BINARIES to ON in your bbappend +EXTRA_OECMAKE:append:class-target = " \ + -Dprotobuf_BUILD_PROTOC_BINARIES=OFF \ +" +
can we make it a packageconfig perhaps ?
Makes sense. Any suggestions about the name? So far only something like "compiler" comes to mind.