[qmake] Narrow the condition in which the swift_config.cookie warning is emitted

This commit is contained in:
Mat Sutcliffe
2021-12-18 15:21:42 +00:00
parent b4f9e06b8b
commit 15059f5de6

View File

@@ -68,7 +68,7 @@ system($$TOUCH $$system_path($$BuildRoot/swift_config.cookie)) {
QMAKE_EXTRA_TARGETS += swift_config_changed
PRE_TARGETDEPS += $${swift_config_changed.target}
}
else:msvc:build_pass {
else:msvc:!qtc_run {
warning(Failed to create swift_config.cookie; you will need to manually run qmake again after any changes in $$join(SWIFT_CONFIG_JSON, ", ").)
}