QMake: sharing a pch

  • I have two different applications that use the same precompiled headers.
    CONFIG += precompile_header
    PRECOMPILED_HEADER = /dev/include/MyPrecompiled.h
    in both .pro files

    The 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?


Log in to reply

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.