From 7ef45a70706aab4b0c60e8df4bb6f9a8cec47b11 Mon Sep 17 00:00:00 2001
From: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
Date: Mon, 8 Jun 2009 15:54:44 +0200
Subject: [PATCH] actually compile and link the phony target

kinda slower, but without error messages.
---
 share/qtcreator/static.pro                    | 4 ++++
 share/qtcreator/translations/translations.pro | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/share/qtcreator/static.pro b/share/qtcreator/static.pro
index f55d3dd9ca2..40ce205ff88 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 724af96604b..6d5a235a744 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
 }
-- 
GitLab