I have enabled pre-compiled headers in my VS solution, and correctly included stdafx.h in all code files. I am using the -Yc option in VS 2013.
Here is where it gets weird. When I build, the compiler generates the pre-compiled headers for each .cpp file it then builds. I know this because I added a "#pragma message("Compiling precompiled headers.")" message in the file and I see it in the output for every file.
Here is where it gets weirder. The same solution will work "properly" on my laptop. i.e. it builds the pre-compiled headers once, and only use. It worked "properly" on every other machine than my desktop.
I have tried this same solution and source on 4 machines, and only on one (mine) does it repeatedly compile the pre-compiled headers.
All machines are running VS Professional 2013 Update 1. Some machines are running Windows 7, some Windows 8.1. We are using the exact same source. There are of course probably some environment differences between the machines, but what option could be causing this?
Does anybody have any insight?