diff options
author | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-02-06 22:10:17 +0200 |
---|---|---|
committer | Aqua-sama <aqua@iserlohn-fortress.net> | 2019-02-06 22:10:17 +0200 |
commit | 3f66997d4b16e197e58d129e56a5da90973070c8 (patch) | |
tree | 0aa3c9e182234c7a16050dbd6223996bd7799ab0 | |
parent | Add subprojects/spdlog.wrap (diff) | |
download | smolbote-3f66997d4b16e197e58d129e56a5da90973070c8.tar.xz |
move add_global_arguments before build targets
-rw-r--r-- | meson.build | 10 |
1 files 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') |