[CMake] Enabling compiler flags for one file ONLY.
Michael Hertling
mhertling at online.de
Tue Jun 1 23:44:25 EDT 2010
On 06/02/2010 04:24 AM, Clark Gaebel wrote:
> 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!).
SET_SOURCE_FILES_PROPERTIES(<massive>.cpp
PROPERTIES COMPILE_FLAGS "-fno-var-tracking")
Regards,
Michael
More information about the CMake
mailing list