From 2279559ee0db245f7dceeb2016a88ae5fcaa2269 Mon Sep 17 00:00:00 2001 From: Alex Maystrenko Date: Wed, 6 Sep 2023 13:18:56 +0200 Subject: [PATCH 1/2] qt: add QT_NO_DEBUG define in release build --- recipes/qt/6.x.x/conanfile.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/recipes/qt/6.x.x/conanfile.py b/recipes/qt/6.x.x/conanfile.py index 3edb49f690ce4..14d3b5e86ae1a 100644 --- a/recipes/qt/6.x.x/conanfile.py +++ b/recipes/qt/6.x.x/conanfile.py @@ -967,6 +967,8 @@ def _create_plugin(pluginname, libname, plugintype, requires): ] self.cpp_info.components["qtCore"].set_property("pkg_config_custom_content", "\n".join(pkg_config_vars)) + if self.settings.build_type == "Release": + self.cpp_info.components['qtCore'].defines.append('QT_NO_DEBUG') if self.settings.os == "Windows": self.cpp_info.components["qtCore"].system_libs.append("authz") if is_msvc(self): From b0e5751cf4360d1f036f8f5515e507ae36f535f9 Mon Sep 17 00:00:00 2001 From: Alex Maystrenko Date: Fri, 8 Sep 2023 12:48:38 +0200 Subject: [PATCH 2/2] fix condition for QT_NO_DEBUG define --- recipes/qt/6.x.x/conanfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/recipes/qt/6.x.x/conanfile.py b/recipes/qt/6.x.x/conanfile.py index 14d3b5e86ae1a..10b88470eb1af 100644 --- a/recipes/qt/6.x.x/conanfile.py +++ b/recipes/qt/6.x.x/conanfile.py @@ -967,7 +967,7 @@ def _create_plugin(pluginname, libname, plugintype, requires): ] self.cpp_info.components["qtCore"].set_property("pkg_config_custom_content", "\n".join(pkg_config_vars)) - if self.settings.build_type == "Release": + if self.settings.build_type != "Debug": self.cpp_info.components['qtCore'].defines.append('QT_NO_DEBUG') if self.settings.os == "Windows": self.cpp_info.components["qtCore"].system_libs.append("authz")