Sharing precompiled headers between projects in Visual Studio

后端 未结 6 1432
野性不改
野性不改 2020-12-01 01:25

I have a solution with many Visual C++ projects, all using PCH, but some have particular compiler switches turned on for project-specific needs.

Most of these projec

6条回答
  •  余生分开走
    2020-12-01 01:47

    On 2012, you can use a PDB and just build the pch from a lib project that only builds the pch and the main project that depends on the pch lib into the same directory (no copying), unfortunately this doesn't work with 2013+ except via a long winded work-a-round.

提交回复
热议问题