summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2020-12-16 13:32:04 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-17 11:37:54 +0000
commit845a342432b9ab07fde53b987ef694ecdc5efb62 (patch)
treeed67fe17a61a1bd6b3b1e9c761f652dde662af72 /src/gui
parent0ba9e3f00ff9f3f27c19e4ad3bae9ea611963031 (diff)
CMake: Fix module separate build error when -DFEATURE_static_runtime=ON
Build qtbase with -DFEATURE_static_runtime=ON, and then separately build another module, following build error occurs: error LNK2038: mismatch detected for 'RuntimeLibrary': value 'MT_StaticRelease' doesn't match value 'MD_DynamicRelease'. That's because all the sources in this module are compiled with 'MD'. When separately building a module except qtbase, FEATURE_static_runtime is not exist in cmake cache. So we should use QT_FEATURE_static_runtime instead of FEATURE_static_runtime in qt_set_common_target_properties. Additionally, adjust the indentation. Change-Id: I2cf4737db9d3e8533570039a66c7d277d62a8d14 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 970e54c63d487ff5a334b8037ce0890fceb24e0f) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/gui')
0 files changed, 0 insertions, 0 deletions