Reputation: 7157
How would it be possible to configure VC++/Solution/Projects to rebuild all but the precompiled headers?
Upvotes: 4
Views: 1031
Reputation: 1754
At first i thought it might be possible by initially building your project (Creating the PCH file), then going into the stdafx.cpp properties (the file that is typically the one that causes the PCH to get built) and setting it to be excluded from the build.
But that isn't workable because the PDB file is linked to the pre-compiled file internally - if you then clean/rebuild your project (after excluding the stdafx.cpp) the PDB will get recreated and then the compiler will complain that the PCH doesn't match the PDB build.
Perhaps you could explain why it is you want to do this?
Upvotes: 1