summaryrefslogtreecommitdiffstats
path: root/qmake/generators/win32
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2011-02-14 14:57:01 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2011-03-15 14:56:03 (GMT)
commitc35f610219b1d09f6d05215a2e2fe4f2f6bd966c (patch)
tree6301609af836a44a2d1489041a0479ee9dc3e75a /qmake/generators/win32
parentc0cd8db0498daaa8151d1f80143b6849016bdc7c (diff)
downloadQt-c35f610219b1d09f6d05215a2e2fe4f2f6bd966c.zip
Qt-c35f610219b1d09f6d05215a2e2fe4f2f6bd966c.tar.gz
Qt-c35f610219b1d09f6d05215a2e2fe4f2f6bd966c.tar.bz2
qmake vcproj generator: support PCHs with other extensions than .h
Task-number: QTBUG-16639 Reviewed-by: Marius Storm-Olsen
Diffstat (limited to 'qmake/generators/win32')
-rw-r--r--qmake/generators/win32/msvc_objectmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/generators/win32/msvc_objectmodel.cpp b/qmake/generators/win32/msvc_objectmodel.cpp
index 69cfc0d..3253c3b 100644
--- a/qmake/generators/win32/msvc_objectmodel.cpp
+++ b/qmake/generators/win32/msvc_objectmodel.cpp
@@ -2104,7 +2104,7 @@ void VCFilter::modifyPCHstage(QString str)
break;
}
}
- bool isHFile = str.endsWith(".h") && (str == Project->precompH);
+ bool isHFile = Option::hasFileExtension(str, Option::h_ext) && (str == Project->precompH);
bool isCPPFile = pchThroughSourceFile && (str == Project->precompCPP);
if(!isCFile && !isHFile && !isCPPFile)