Remove /INCREMENTAL:YES from linker flags

This flag doesn't exist in MSVC 2015+:
LINK : warning LNK4224: /INCREMENTAL:YES is no longer supported;  ignored
https://docs.microsoft.com/en-us/cpp/build/reference/incremental-link-incrementally?view=vs-2015

Change-Id: I3b2aace619351e2dc9cc86e1df28facc21b7d9fe
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
bb10
Marcel Krems 2020-08-31 07:19:21 +02:00 committed by Volker Hilsheimer
parent 2ab91dd68e
commit 996e08734e
1 changed files with 0 additions and 2 deletions

View File

@ -393,8 +393,6 @@ function(qt_internal_set_up_config_optimizations_like_in_qmake)
if(config STREQUAL "RELEASE" OR config STREQUAL "RELWITHDEBINFO"
OR config STREQUAL "MINSIZEREL")
string(APPEND "${flag_var_name}" " /INCREMENTAL:NO")
elseif(config STREQUAL "DEBUG")
string(APPEND "${flag_var_name}" " /INCREMENTAL:YES")
endif()
# Assign value to the cache entry.