[CMake] Changing compiler flags generated by cmake

Tyler Roscoe tyler at cryptio.net
Wed Jun 23 01:47:12 EDT 2010


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


More information about the CMake mailing list