[CMake] Changing compiler flags generated by cmake

ben scott benscott at nwlink.com
Tue Jun 22 23:30:43 EDT 2010


I know about the variable to add custom flags for g++, but how do I get rid if 
unwanted flags? I am  writing a program for KDE on Linux and cmake insists on 
putting "-ansi" in the flags. One of the header files for a library uses 
"typeof" so I need to get rid of the ansi flag. 

Thank you.


More information about the CMake mailing list