I am working on a project with many .cppfiles on vs2013and using a precompiled header for them. I use CMake to create my project.
But I have one .cfile (let it be called xyz.c) for which I want to disable the precompiled header.
I tried several methods, but if I include precompiled headers in the whole file .cpp, it will automatically be included for the file .c. This is what I tried:
set_source_files_properties (xyz.c
PROPERTIES COMPILE_FLAGS /Y-xyz.c )
Assuming it is /Yuenabled for all files, I'm just trying to disable this option for xyz.c.
If anyone knows any method, please let me know.
source
share