From 14458cc59b298e4449183e0dcc72ffc73bc2c8f8 Mon Sep 17 00:00:00 2001 From: Yuhang Zhao <2546789017@qq.com> Date: Sun, 30 Apr 2023 11:47:35 +0800 Subject: [PATCH] QMake: fix build with clang-cl We need to enable or disabled exception handling for this library explicitly when using clang-cl, otherwise clang-cl will throw an error and stop compiling. Pick-to: 6.5 Change-Id: I2b2a9e5eb009cb8ce264f2de58f8bb4fdb2339c1 Reviewed-by: Joerg Bornemann --- qmake/CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt index 3ccebd9bad5..35e06b4e8f6 100644 --- a/qmake/CMakeLists.txt +++ b/qmake/CMakeLists.txt @@ -49,6 +49,8 @@ target_compile_definitions(QtLibraryInfo PUBLIC ${deprecation_define} ) +qt_internal_set_exceptions_flags(QtLibraryInfo OFF) + if(NOT QT_FEATURE_qmake) return() endif()