From 2dc7708c362dffcdd67fad2fdbc641f03f5c1858 Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 20 Nov 2013 00:28:18 +0200 Subject: [PATCH] Improve detection of conf.pri. --- unixconf.pri | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/unixconf.pri b/unixconf.pri index 2126c52dd..e42eda07f 100644 --- a/unixconf.pri +++ b/unixconf.pri @@ -1,7 +1,13 @@ # Generated by the configure file -# There will be a WARNING during configure that this file wasn't found. -# This is harmless. During make the file will be found. If not, there will a WARNING again. -include($$OUT_PWD/../conf.pri) +# Ignore any WARNING about 'conf.pri' missing during configure. The file should be found during make. +# If not there will be a WARNING again. +# The first path is used when the source is being build by packagers (pbuilder/sbuild/etc) +# The second path is used when you manually run the configure script in the root folder (eg when using qt creator) +exists($$OUT_PWD/../conf.pri) { + include($$OUT_PWD/../conf.pri) +} else { + include(conf.pri) +} # COMPILATION SPECIFIC !nox:dbus {