Skip to content
Snippets Groups Projects
Commit 0c118542 authored by Bruce Cowan's avatar Bruce Cowan :airplane:
Browse files

Make dependencies optional

parent bc478b2c
No related branches found
No related tags found
No related merge requests found
subdir('src')
subdir('test')
if openmp_dep.found()
subdir('test')
endif
......@@ -3,9 +3,9 @@ project('stdlib', 'c')
cc = meson.get_compiler('c')
libm = cc.find_library('m')
glib_dep = dependency('glib-2.0', version: '>= 2.16')
openmp_dep = dependency('openmp')
thread_dep = dependency('threads')
glib_dep = dependency('glib-2.0', version: '>= 2.16', required: false)
openmp_dep = dependency('openmp', required: false)
thread_dep = dependency('threads', required: false)
incdir = include_directories('lib')
......@@ -35,6 +35,12 @@ executable('write', 'write.c')
subdir('array')
subdir('hashtable')
subdir('list')
subdir('openmp')
subdir('pthread')
subdir('winter')
if openmp_dep.found()
subdir('openmp')
endif
if thread_dep.found()
subdir('pthread')
endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment