meson: fix build with libnethogs disabled
Fix `meson.build:43:19: ERROR: Unknown variable "libnethogs".`. While src/ has this correct, the top-level meson.build wasn't right.
This commit is contained in:
14
meson.build
14
meson.build
@@ -38,9 +38,11 @@ subdir('src')
|
||||
#############################
|
||||
## Pkgconfig definition ##
|
||||
#############################
|
||||
pkgconfig = import('pkgconfig')
|
||||
pkgconfig_install_dir = join_paths(get_option('libdir'), 'pkgconfig')
|
||||
pkgconfig.generate(libnethogs,
|
||||
requires: ['libpcap'],
|
||||
version: meson.project_version()
|
||||
)
|
||||
if get_option('enable-libnethogs').enabled()
|
||||
pkgconfig = import('pkgconfig')
|
||||
pkgconfig_install_dir = join_paths(get_option('libdir'), 'pkgconfig')
|
||||
pkgconfig.generate(libnethogs,
|
||||
requires: ['libpcap'],
|
||||
version: meson.project_version()
|
||||
)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user