Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
> > I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or > > add_executable() call is processed. So you should be able to remove the > > flag, add the singleton library/executable, and put the flag back. > > > > tyler > > This is the first thing I tried, however it doesn't seem to

Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
> I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or > add_executable() call is processed. So you should be able to remove the > flag, add the singleton library/executable, and put the flag back. > > tyler This is the first thing I tried, however it doesn't seem to work. I see

Re: [CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Tyler Roscoe
On Tue, Dec 01, 2009 at 10:10:05PM +, Daniel Nelson wrote: > flag. Is it possible to remove a flag from the default CMAKE_CXX_FLAGS > variable > only for this target? Or do I have to remove the flag from the default flags I believe CMAKE_CXX_FLAGS is consulted each time an add_library() or

[CMake] Removing default COMPILE_FLAGS

2009-12-01 Thread Daniel Nelson
I am building a project that has a single managed c++ target, and I need to remove a compile flag for only this one target, since it conflicts with the -clr flag. Is it possible to remove a flag from the default CMAKE_CXX_FLAGS variable only for this target? Or do I have to remove the flag from t