From 4428cb68d708f33df494d54f15b331332ccb59ed Mon Sep 17 00:00:00 2001 From: Francesco Abbate Date: Fri, 19 Apr 2019 15:50:10 +0200 Subject: [PATCH] Add math library when required --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index 3704de2..316f898 100644 --- a/meson.build +++ b/meson.build @@ -5,6 +5,10 @@ if host_machine.system() == 'linux' agg_deps += dependency('x11') endif +cc = meson.get_compiler('cpp') +libm = cc.find_library('m', required : false) +agg_deps += libm + agg_includes = include_directories('include') install_subdir('include', install_dir : 'include/agg2', strip_directory : true)