1 parent 361cf54 commit 2eb9c1bCopy full SHA for 2eb9c1b
1 file changed
libcapt/meson.build
@@ -43,15 +43,19 @@ headers = files(
43
'UnexpectedBehaviourError.hpp',
44
)
45
46
+static_subproject = get_option('default_library') == 'static' and meson.is_subproject()
47
+
48
include = include_directories('.')
-install_headers(headers, preserve_path: true, subdir: 'libcapt')
49
+if not static_subproject
50
+ install_headers(headers, preserve_path: true, subdir: 'libcapt')
51
+endif
52
53
libcapt = library(
54
'libcapt',
55
sources,
56
include_directories: include,
57
name_prefix: '',
- install: true,
58
+ install: not static_subproject,
59
60
61
libcapt_dep = declare_dependency(
0 commit comments