From 3f66997d4b16e197e58d129e56a5da90973070c8 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Wed, 6 Feb 2019 22:10:17 +0200 Subject: move add_global_arguments before build targets --- meson.build | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/meson.build b/meson.build index d4a8bd7..dcae570 100644 --- a/meson.build +++ b/meson.build @@ -9,6 +9,11 @@ project('smolbote', 'cpp', # This script will have the environment variables MESON_SOURCE_ROOT and MESON_BUILD_ROOT set. #meson.add_postconf_script('tools/gen-qtcreator-config.py', '--prefix=../smolbote', '.') +# add -DQT_NO_DEBUG to non-debug builds +if not get_option('debug') + add_global_arguments('-DQT_NO_DEBUG', language: 'cpp') +endif + # Qt 5 qt5 = import('qt5') dep_qt5 = dependency('qt5', modules: ['Core', 'Network', 'Widgets', 'WebEngineWidgets', 'Concurrent', 'Test']) @@ -41,11 +46,6 @@ else dep_plasma = declare_dependency() endif -# add -DQT_NO_DEBUG to non-debug builds -if not get_option('debug') - add_global_arguments('-DQT_NO_DEBUG', language: 'cpp') -endif - # Generate config header include = include_directories('include') -- cgit v1.2.1