diff --git a/share/qtcreator/static.pro b/share/qtcreator/static.pro
index f55d3dd9ca2cb78fe8e9dfd89a93101b1df9384e..40ce205ff886923b7b380bfee0e3f697423c6950 100644
--- a/share/qtcreator/static.pro
+++ b/share/qtcreator/static.pro
@@ -2,6 +2,7 @@ include(../../qtcreator.pri)
 
 TEMPLATE = app
 TARGET = phony_target
+CONFIG -= qt
 QT =
 LIBS =
 
@@ -10,10 +11,13 @@ isEmpty(vcproj) {
     OBJECTS_DIR =
     win32:CONFIG -= embed_manifest_exe
 } else {
+    CONFIG += console
     PHONY_DEPS = .
     phony_src.input = PHONY_DEPS
     phony_src.output = phony.c
+    phony_src.variable_out = GENERATED_SOURCES
     phony_src.commands = echo int main() { return 0; } > phony.c
+    phony_src.name = CREATE phony.c
     phony_src.CONFIG += combine
     QMAKE_EXTRA_COMPILERS += phony_src
 }
diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro
index 724af96604b919addba1550fdf06a54c9ed6fbaf..6d5a235a74466dc5cb065bec4c6f9729f667c6bf 100644
--- a/share/qtcreator/translations/translations.pro
+++ b/share/qtcreator/translations/translations.pro
@@ -19,6 +19,7 @@ QMAKE_EXTRA_TARGETS += ts
 
 TEMPLATE = app
 TARGET = phony_target2
+CONFIG -= qt
 QT =
 LIBS =
 
@@ -36,10 +37,13 @@ isEmpty(vcproj) {
     OBJECTS_DIR =
     win32:CONFIG -= embed_manifest_exe
 } else {
+    CONFIG += console
     PHONY_DEPS = .
     phony_src.input = PHONY_DEPS
     phony_src.output = phony.c
+    phony_src.variable_out = GENERATED_SOURCES
     phony_src.commands = echo int main() { return 0; } > phony.c
+    phony_src.name = CREATE phony.c
     phony_src.CONFIG += combine
     QMAKE_EXTRA_COMPILERS += phony_src
 }