[CMake] Enabling compiler flags for one file ONLY.

Clark Gaebel cg.wowus.cg at gmail.com
Tue Jun 1 22:24:46 EDT 2010


I have a massive .cpp file that has been autogenerated ahead of time.
However, whenever I build it, according to gcc timing information, it
spends all its time in "variable tracking". Therefore, I would like to
enable the flag -fno-var-tracking for that file only (having variable
debug information is useful!).

How can I do this?


More information about the CMake mailing list