From 208dbb4c18105e430dfcdfd649456202c603e242 Mon Sep 17 00:00:00 2001 From: Li Xinwei <1326710505@qq.com> Date: Tue, 18 May 2021 15:48:58 +0800 Subject: [PATCH] qmake: fix MSVC build error when QT_FEATURE_static_runtime is ON error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'. Change-Id: I1422bdc680a066f0736c3e28cc6beafd2461db88 Reviewed-by: Qt CI Bot Reviewed-by: Alexandru Croitor --- qmake/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/qmake/CMakeLists.txt b/qmake/CMakeLists.txt index 688314b736..dbe50552cf 100644 --- a/qmake/CMakeLists.txt +++ b/qmake/CMakeLists.txt @@ -34,6 +34,7 @@ target_compile_definitions(QtLibraryInfo PUBLIC QT_HOST_MKSPEC="${QT_QMAKE_HOST_MKSPEC}" QT_TARGET_MKSPEC="${QT_QMAKE_TARGET_MKSPEC}" ) +qt_set_common_target_properties(QtLibraryInfo) # qmake is out of any module, so we manually evaluate the required features. include("${CMAKE_CURRENT_SOURCE_DIR}/configure.cmake")