Skip to content

Commit

Permalink
qt: add QT_NO_DEBUG define in release build
Browse files Browse the repository at this point in the history
  • Loading branch information
technic committed Sep 6, 2023
1 parent 2771cb3 commit 2279559
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/qt/6.x.x/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 2279559

Please sign in to comment.