Re: [CMake] Changing compiler flags generated by cmake

2010-06-22 Thread Tyler Roscoe
On Tue, Jun 22, 2010 at 08:30:43PM -0700, ben scott wrote: > 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 Something like: string(REPLACE "-ansi" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FL

[CMake] Changing compiler flags generated by cmake

2010-06-22 Thread ben scott
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. _