summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/moc.prf
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-03-31 12:38:57 (GMT)
committerOswald Buddenhagen <oswald.buddenhagen@nokia.com>2009-04-02 16:01:53 (GMT)
commit33fedde08f263c6aaa46c2fa0fdf93896c7eaa64 (patch)
treed81038332ea3753960560a055bd6344bccd9e964 /mkspecs/features/moc.prf
parent3570e978058816745101a69b552ad9d07e349542 (diff)
downloadQt-33fedde08f263c6aaa46c2fa0fdf93896c7eaa64.zip
Qt-33fedde08f263c6aaa46c2fa0fdf93896c7eaa64.tar.gz
Qt-33fedde08f263c6aaa46c2fa0fdf93896c7eaa64.tar.bz2
re-apply improved version of 3aff9113a9702ea6f7e099a73136a718ae1b992f
this time, it can deal with directories which are absolute to start with. Reviewed-by: mariusSO
Diffstat (limited to 'mkspecs/features/moc.prf')
-rw-r--r--mkspecs/features/moc.prf5
1 files changed, 4 insertions, 1 deletions
diff --git a/mkspecs/features/moc.prf b/mkspecs/features/moc.prf
index faa9871..d3ad4b2 100644
--- a/mkspecs/features/moc.prf
+++ b/mkspecs/features/moc.prf
@@ -61,7 +61,10 @@ QMAKE_EXTRA_COMPILERS += moc_source
INCREDIBUILD_XGE += moc_source
#make sure we can include these files
-INCLUDEPATH += $$MOC_DIR
+moc_dir_short = $$MOC_DIR
+win32:moc_dir_short ~= s,^.:,/,
+contains(moc_dir_short, ^[/\\].*):INCLUDEPATH += $$MOC_DIR
+else:INCLUDEPATH += $$OUT_PWD/$$MOC_DIR
#auto depend on moc
unix:!no_mocdepend {