Use default_library for static build toggle
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
c3d9dd6360
commit
fe4a5f4460
1 changed files with 6 additions and 4 deletions
|
@ -1,9 +1,11 @@
|
||||||
xwim_src = ['main.cpp', 'Xwim.cpp', 'Archiver.cpp']
|
xwim_src = ['main.cpp', 'Xwim.cpp', 'Archiver.cpp']
|
||||||
xwim_archiver = ['archiver/LibArchiver.cpp']
|
xwim_archiver = ['archiver/LibArchiver.cpp']
|
||||||
|
|
||||||
xwim_libs = [dependency('libarchive', required: true),
|
is_static = get_option('default_library')=='static'
|
||||||
dependency('fmt', required: true),
|
|
||||||
dependency('spdlog', required: true),
|
xwim_libs = [dependency('libarchive', required: true, static: is_static),
|
||||||
dependency('tclap', required: true)]
|
dependency('fmt', required: true, static: is_static),
|
||||||
|
dependency('spdlog', required: true, static: is_static),
|
||||||
|
dependency('tclap', required: true, static: is_static)]
|
||||||
|
|
||||||
executable('xwim', xwim_src+xwim_archiver, dependencies: xwim_libs)
|
executable('xwim', xwim_src+xwim_archiver, dependencies: xwim_libs)
|
||||||
|
|
Loading…
Reference in a new issue