Work around missing protobuf::libprotoc include paths

In some reference libprotobuf/libprotoc installations the include
paths of the protobuf::libprotoc target are missing.

Force using protobuf::libprotobuf as the dependency for the
libprotoc compile test.

Change-Id: I56bb84910bc178063d42292f04d7e75c04e9ca4d
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
Reviewed-by: Dennis Oberst <dennis.oberst@qt.io>
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
This commit is contained in:
Alexey Edelev 2025-07-15 12:40:20 +02:00
parent a9240736d1
commit ae42ac9b1b
1 changed files with 1 additions and 0 deletions

View File

@ -44,6 +44,7 @@ int main(void)
qt_config_compile_test(libprotoc
LIBRARIES
protobuf::libprotoc
protobuf::libprotobuf
CODE
"#include <google/protobuf/compiler/plugin.h>