From d1af39d2a78862005472ed0ca760ca092893e4e7 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 14 Aug 2020 00:44:20 +0100 Subject: [PATCH] Make sure NDEBUG is defined in release, plus variable rename --- meson.build | 4 ++-- src/meson.build | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meson.build b/meson.build index 66c80b5..3515282 100644 --- a/meson.build +++ b/meson.build @@ -1,10 +1,10 @@ project('orotool', 'cpp', 'c', version: '0.1.0', meson_version: '>=0.49.2', - default_options: ['buildtype=debug', 'cpp_std=gnu++17'], + default_options: ['buildtype=debug', 'cpp_std=gnu++17', 'b_ndebug=if-release'], license: 'GPL3+', ) -date_incdir = include_directories('subprojects/date/include') +date_inc = include_directories('subprojects/date/include') subdir('src') diff --git a/src/meson.build b/src/meson.build index 914c6f2..768d535 100644 --- a/src/meson.build +++ b/src/meson.build @@ -60,6 +60,6 @@ executable(meson.project_name(), project_config_file, install: true, dependencies: lib_deps, - include_directories: date_incdir, + include_directories: date_inc, cpp_args: ['-DEV_USE_STDEXCEPT'], )