summaryrefslogtreecommitdiffstats
path: root/qmake
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2021-05-18 15:48:58 +0800
committerLi Xinwei <1326710505@qq.com>2021-05-19 04:03:46 +0800
commit208dbb4c18105e430dfcdfd649456202c603e242 (patch)
tree56a30fb7ea27a77608697b9c39b8d15ef8c33e3d /qmake
parent0855f6279182af9cb54ac5113ba5c99db8ecb819 (diff)
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 <qt_ci_bot@qt-project.org> Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'qmake')
-rw-r--r--qmake/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
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")