summaryrefslogtreecommitdiffstats
path: root/src/entrypoint
diff options
context:
space:
mode:
authorLi Xinwei <1326710505@qq.com>2020-12-14 01:13:18 +0800
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2020-12-17 11:37:54 +0000
commit0ba9e3f00ff9f3f27c19e4ad3bae9ea611963031 (patch)
treec3631b4369251a89ce915cd3b5bbf01bf1885b04 /src/entrypoint
parent11ae4beef6de7b8a9edad49184e13efb64c377b7 (diff)
CMake: Fix compile warnings when MSVC and -DFEATURE_static_runtime=ON
When using MSVC compiler and -DFEATURE_static_runtime=ON, qrc_foo.cpp and qtentrypoint_win.cpp are still compiled with '-MD' or '-MDd' flag, which will cause following warnings and other possible problems: warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library Change-Id: I6794930a64e9cff4dc1c9632fc3fc64227848af0 Reviewed-by: Yuhang Zhao <2546789017@qq.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit 21e4e85a5798884837b35859f73f1eca4cb976d2) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/entrypoint')
-rw-r--r--src/entrypoint/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/entrypoint/CMakeLists.txt b/src/entrypoint/CMakeLists.txt
index f11ab85542..ba35a173d7 100644
--- a/src/entrypoint/CMakeLists.txt
+++ b/src/entrypoint/CMakeLists.txt
@@ -44,6 +44,7 @@ if(using_entrypoint_library)
qt_handle_multi_config_output_dirs(EntryPointImplementation)
qt_internal_add_target_aliases(EntryPointImplementation)
+ qt_set_common_target_properties(EntryPointImplementation)
endif()
# ---- Now we're ready to set up the platform specifics ----