Skip to content
Snippets Groups Projects
Commit 1335b8a4 authored by Millian Poquet's avatar Millian Poquet
Browse files

protocol-cpp: fix include install dir/pkgc

parent df66a61d
No related branches found
No related tags found
No related merge requests found
...@@ -12,10 +12,10 @@ proto_generated_cpp = custom_target('protobuf-generated-sources', ...@@ -12,10 +12,10 @@ proto_generated_cpp = custom_target('protobuf-generated-sources',
output: ['hello.pb.h', 'hello.pb.cc'], output: ['hello.pb.h', 'hello.pb.cc'],
command: [protoc, '--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@OUTDIR@', '@INPUT@'], command: [protoc, '--proto_path=@CURRENT_SOURCE_DIR@', '--cpp_out=@OUTDIR@', '@INPUT@'],
install: true, install: true,
install_dir: [get_option('includedir'), false], install_dir: [get_option('includedir')+'/protocol', false],
) )
lib = shared_library('protocol', proto_generated_cpp, dependencies: protobuf_dep, install: true) lib = shared_library('protocol', proto_generated_cpp, dependencies: [protobuf_dep], install: true)
pkg = import('pkgconfig') pkg = import('pkgconfig')
pkg.generate(lib) pkg.generate(lib, libraries: protobuf_dep)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment