build: allow disabling installation of static libraries

This commit is contained in:
Christian Hergert
2022-07-22 13:43:54 -07:00
parent feccf5fbeb
commit 099330db90
2 changed files with 4 additions and 1 deletions

View File

@ -50,7 +50,7 @@ libsysprof_capture = static_library(
dependencies: libsysprof_capture_deps,
c_args: [ '-DSYSPROF_CAPTURE_COMPILATION' ],
install_dir: get_option('libdir'),
install: not meson.is_subproject(),
install: not meson.is_subproject() and get_option('install-static'),
gnu_symbol_visibility: 'hidden',
pic: true,
)