Skip to content

Commit e4583a3

Browse files
committed
qt5 fix
Use .qmake.conf on Qt5 instead of .qmake.cache.in. http://qt-project.org/wiki/QMake-top-level-srcdir-and-builddir
1 parent e3c9628 commit e4583a3

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.qmake.conf

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
top_srcdir=$$PWD
2+
top_builddir=$$shadowed($$PWD)
3+
top_iris_builddir=$$shadowed($$PWD)/iris

psi.pro

+9-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,19 @@ include(conf.pri)
66
unix:system("echo \"include($$top_srcdir/src/conf_iris.pri)\" > $$top_builddir/iris/conf.pri")
77
windows:system("echo include($$top_srcdir/src/conf_iris.pri) > $$top_builddir\\iris\\conf.pri")
88

9-
sub_initvars.file = initvars.pro
109
sub_iris.subdir = iris
11-
sub_iris.depends = sub_initvars
1210
sub_src.subdir = src
13-
sub_src.depends = sub_initvars sub_iris
11+
12+
!greaterThan(QT_MAJOR_VERSION, 4) {
13+
sub_initvars.file = initvars.pro
14+
sub_iris.depends = sub_initvars
15+
sub_src.depends = sub_initvars
16+
SUBDIRS += sub_initvars
17+
}
18+
19+
sub_src.depends += sub_iris
1420

1521
SUBDIRS += \
16-
sub_initvars \
1722
sub_iris \
1823
sub_src
1924

0 commit comments

Comments
 (0)