aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 22:10:17 +0200
committerAqua-sama <aqua@iserlohn-fortress.net>2019-02-06 22:10:17 +0200
commit3f66997d4b16e197e58d129e56a5da90973070c8 (patch)
tree0aa3c9e182234c7a16050dbd6223996bd7799ab0
parentAdd subprojects/spdlog.wrap (diff)
downloadsmolbote-3f66997d4b16e197e58d129e56a5da90973070c8.tar.xz
move add_global_arguments before build targets
-rw-r--r--meson.build10
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')