summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-10-11 14:45:00 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2021-10-13 08:34:23 +0000
commite3d3c9ee50762599cb7d2e6f14caec354e6dadbb (patch)
treedda0a8ec4cbbeeaf9a3d057586d9517994301296 /cmake
parent23c51da465ded21cc0dede98bfcc10a595caee5d (diff)
Re-enable QT_NO_NARROWING_CONVERSIONS_IN_CONNECT for Qt
This define used to be set for the entirety of the Qt build but was lost during the qmake->CMake transition. Re-enable it. Change-Id: Idc4cb6ada485158559485b60f62f76439550b255 Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> (cherry picked from commit 49cf0b94597ce41484c130c3d3666de9e25cfe30)
Diffstat (limited to 'cmake')
-rw-r--r--cmake/QtInternalTargets.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index 02be218ebe..4f3aaab919 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -140,6 +140,7 @@ if (ANDROID AND NOT CMAKE_HOST_WIN32)
target_link_options(PlatformModuleInternal INTERFACE -fuse-ld=lld)
endif()
+target_compile_definitions(PlatformCommonInternal INTERFACE QT_NO_NARROWING_CONVERSIONS_IN_CONNECT)
target_compile_definitions(PlatformCommonInternal INTERFACE $<$<NOT:$<CONFIG:Debug>>:QT_NO_DEBUG>)
function(qt_internal_apply_bitcode_flags target)