Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Michael Wild
Glad to hear. I don't think that add_definitions() understands -U, so it won't translate it for you, but pass it verbatim to the compiler. This means, that -DFOO will become /DFOO for MSVC, you'll have to do the same transformation yourself for -U. Nevertheless, personally I would choose add_defin

Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Kelly Burkhart
Thanks, that seems to work. I'm getting around to testing the windows version of this, we have a command line arg: "-UUNICODE" which explicitly removes a manifest constant. I assume that should be in a set(...) rather than an add_definitions(...) correct? The defines for __x86__ and __linux__ ar

Re: [CMake] CXX flags applied to C source

2011-07-25 Thread Michael Wild
On 07/25/2011 03:20 PM, Kelly Burkhart wrote: > Hi, I have a bunch of compiler flags specified with add_definitions as so: > > if(LINUX) > tb_compiler_version(TB_GCC_VERSION) > add_definitions(${CMAKE_CXX_FLAGS} "-g") > add_definitions(${CMAKE_CXX_FLAGS} "-DBOOST_SIGNALS_NAMESPACE=tb_signals

[CMake] CXX flags applied to C source

2011-07-25 Thread Kelly Burkhart
Hi, I have a bunch of compiler flags specified with add_definitions as so: if(LINUX) tb_compiler_version(TB_GCC_VERSION) add_definitions(${CMAKE_CXX_FLAGS} "-g") add_definitions(${CMAKE_CXX_FLAGS} "-DBOOST_SIGNALS_NAMESPACE=tb_signals") add_definitions(${CMAKE_CXX_FLAGS} "-D__x86__") add