project('libzakutils', 'c',
version: '0.0.1')
-add_global_link_arguments('-lm', language: 'c')
-
glib_dep = dependency('glib-2.0')
gobject_dep = dependency('gobject-2.0')
gio_dep = dependency('gio-2.0')
+cc = meson.get_compiler('c')
+m_dep = cc.find_library('m', required : false)
+
inc = include_directories('src')
subdir('src')
libzakutils = shared_library ('zakutils',
libzakutils_sources,
- dependencies: [glib_dep, gobject_dep, gio_dep],
+ dependencies: [glib_dep, gobject_dep, gio_dep, m_dep],
install: true)
\ No newline at end of file