ode-toolbox

ODE integration tools
git clone https://git.0xfab.ch/ode-toolbox.git
Log | Files | Refs | README | LICENSE

commit 46a205016bafafac9cbcdfc9a15f97783ba1e4f9
parent 59d2e547b27f5e48aba7f9db7a634f12becfa0f8
Author: Fabian Wermelinger <fabianw@mavt.ethz.ch>
Date:   Sat, 19 Dec 2020 00:00:30 +0100

Add global options

Diffstat:
Mmeson.build | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/meson.build b/meson.build @@ -4,20 +4,20 @@ project('ode_toolbox', 'cpp', default_options: ['cpp_std=c++11', 'b_ndebug=if-release'] ) -dependencies = [] -cpp_args = ['-D_ALIGN_=16'] -if get_option('openmp') - dependencies += [dependency('openmp')] -endif +add_global_arguments('-D_ALIGN_=16', language: 'cpp') if get_option('precision') == 'single' - cpp_args += ['-D_FLOAT_PRECISION_'] + add_global_arguments('-D_FLOAT_PRECISION_') endif subdir('include') includes = include_directories('include') -header_deps = declare_dependency( +deps = [] +deps += declare_dependency( include_directories: includes) +if get_option('openmp') + deps += dependency('openmp') +endif subdir('test')