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_FLAGS})