Make sure NDEBUG is defined in release, plus variable rename

This commit is contained in:
King_DuckZ 2020-08-14 00:44:20 +01:00
parent 80ef2afbee
commit d1af39d2a7
2 changed files with 3 additions and 3 deletions

View file

@ -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')

View file

@ -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'],
)