aboutsummaryrefslogtreecommitdiff
path: root/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'meson.build')
-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')