[CMake] Erasing a compiler flags

Leopold Palomo Avellaneda leo at alaxarxa.net
Mon Mar 2 07:37:53 EST 2009


Hi,

I have a problem with one project. There's one file that doesn't accept a some 
compiler flags because g++ then has problems (templates, etc).

So, I would like to set with another valuer the CMAKE_CXX_FLAGS_RELEASE and 
CMAKE_CXX_FLAGS_RELWITHDEBINFO for an _specific_ target.

I have looked in the documentation and I have found how to add (COMPILE_FLAGS) 
but not how to delete/remove flags. Someone hows how to do it?

Regards,

Leo


More information about the CMake mailing list