Qt 6.11 is out! See what's new in the release
blog
QMake: sharing a pch
Qt Creator and other tools
1
Posts
1
Posters
789
Views
1
Watching
-
I have two different applications that use the same precompiled headers.
e.g.
'
CONFIG += precompile_header
PRECOMPILED_HEADER = /dev/include/MyPrecompiled.h
'
in both .pro filesThe problem is that when I build both applications, the pch is created twice. Once for each application, when the same pch is placed in each of the applications dir.
Is there a way to create the pch file only once? meaning setting it a shared directory and name and have both the applications use it?
Thanks!