From caae3eaffccab9acf0f86def319309277b749ce4 Mon Sep 17 00:00:00 2001 From: Alex Zolotarev Date: Sat, 17 Mar 2012 06:19:02 +0300 Subject: [PATCH] Fixed compilation for non-production builds if version.hpp wasn't created --- version/version.pro | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/version/version.pro b/version/version.pro index 16fe321899..7a7b5755c6 100644 --- a/version/version.pro +++ b/version/version.pro @@ -25,10 +25,14 @@ PRE_TARGETDEPS += $$VERSION_HEADER CONFIG(production) { QMAKE_EXTRA_TARGETS += versiontarget } +# also regenerate if file doesn't exist +!exists( $$VERSION_HEADER ) { + QMAKE_EXTRA_TARGETS += versiontarget +} HEADERS += \ version.hpp \ ver_serialization.hpp \ - + SOURCES += \ empty_stub.cpp \