Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. QMake: sharing a pch
Qt 6.11 is out! See what's new in the release blog

QMake: sharing a pch

Scheduled Pinned Locked Moved Qt Creator and other tools
1 Posts 1 Posters 789 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • O Offline
    O Offline
    ozgi
    wrote on last edited by
    #1

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

    Thanks!

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved