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:
@@ -38,9 +38,11 @@ subdir('src')
|
|||||||
#############################
|
#############################
|
||||||
## Pkgconfig definition ##
|
## Pkgconfig definition ##
|
||||||
#############################
|
#############################
|
||||||
pkgconfig = import('pkgconfig')
|
if get_option('enable-libnethogs').enabled()
|
||||||
pkgconfig_install_dir = join_paths(get_option('libdir'), 'pkgconfig')
|
pkgconfig = import('pkgconfig')
|
||||||
pkgconfig.generate(libnethogs,
|
pkgconfig_install_dir = join_paths(get_option('libdir'), 'pkgconfig')
|
||||||
|
pkgconfig.generate(libnethogs,
|
||||||
requires: ['libpcap'],
|
requires: ['libpcap'],
|
||||||
version: meson.project_version()
|
version: meson.project_version()
|
||||||
)
|
)
|
||||||
|
endif
|
||||||
|
|||||||
Reference in New Issue
Block a user