diff options
-rw-r--r-- | test cases/frameworks/5 protocol buffers/meson.build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/test cases/frameworks/5 protocol buffers/meson.build b/test cases/frameworks/5 protocol buffers/meson.build index 5c28344..c99e0a8 100644 --- a/test cases/frameworks/5 protocol buffers/meson.build +++ b/test cases/frameworks/5 protocol buffers/meson.build @@ -1,7 +1,12 @@ project('protocol buffer test', 'cpp') -protoc = find_program('protoc') -dep = dependency('protobuf') +protoc = find_program('protoc', required : false) +dep = dependency('protobuf', required : false) + +if not protoc.found() or not dep.found() + error('MESON_SKIP_TEST: protoc tool and/or protobuf pkg-config dependency not found') +endif + gen = generator(protoc, \ output : ['@BASENAME@.pb.cc', '@BASENAME@.pb.h'], |