Re: [CMake] Can't Remove CXX_FLAGS entry

2013-10-30 Thread Stephen Kelly
Yngve Inntjore Levinsen wrote: > Hi, > > Have a look at the very silly hello world example attached. As I think > you mentioned, the cmake way to do this is to have targets with specific > flags in separate folders. The CMake 2.8.12 way to do this is to use target_compile_options(). Then you ca

Re: [CMake] Can't Remove CXX_FLAGS entry

2013-10-29 Thread Stewart, Robert
I wrote: > > When I generate NMake files for a project, to build on > Windows, CMAKE_CXX_FLAGS_DEBUG includes /RTC1. That's fine > for most of the libraries in the build tree, but one uses > /CLR and that conflicts with /RTC1. Is there a way to update > the compiler flags for a particular target?

[CMake] Can't Remove CXX_FLAGS entry

2013-10-23 Thread Stewart, Robert
When I generate NMake files for a project, to build on Windows, CMAKE_CXX_FLAGS_DEBUG includes /RTC1. That's fine for most of the libraries in the build tree, but one uses /CLR and that conflicts with /RTC1. Is there a way to update the compiler flags for a particular target? A search reveals