Re: [CMake] problem getting defines quoted properly

2011-01-17 Thread Andreas Pakulat
On 14.01.11 20:25:25, Andreas Pakulat wrote: > Hi, > > I'm trying to set a define so that it can be used as string-literal in > C++ code using add_definitions. This: > > add_definition( -DMYFOO=\"BAR BAZ\" ) > > works fine on linux, but breaks with MSVC6 on windows. I always thought > I understo

Re: [CMake] problem getting defines quoted properly

2011-01-14 Thread Andreas Pakulat
On 14.01.11 21:57:39, Michael Hertling wrote: > On 01/14/2011 08:25 PM, Andreas Pakulat wrote: > > Hi, > > > > I'm trying to set a define so that it can be used as string-literal in > > C++ code using add_definitions. This: > > > > add_definition( -DMYFOO=\"BAR BAZ\" ) > > > > works fine on linu

Re: [CMake] problem getting defines quoted properly

2011-01-14 Thread David Cole
On Fri, Jan 14, 2011 at 4:35 PM, SF Markus Elfring < elfr...@users.sourceforge.net> wrote: > "The VS6 IDE does not support definition values with spaces..." >> > > By the way: > How do you think about the bug report "rc.exe error in 2.8.4-rc1 if > ADD_DEFINITITIONS contains definition with space"

Re: [CMake] problem getting defines quoted properly

2011-01-14 Thread SF Markus Elfring
"The VS6 IDE does not support definition values with spaces..." By the way: How do you think about the bug report "rc.exe error in 2.8.4-rc1 if ADD_DEFINITITIONS contains definition with space" by Vladislav Vaintroub? http://public.kitware.com/Bug/view.php?id=11695 Regards, Markus ___

Re: [CMake] problem getting defines quoted properly

2011-01-14 Thread Michael Hertling
On 01/14/2011 08:25 PM, Andreas Pakulat wrote: > Hi, > > I'm trying to set a define so that it can be used as string-literal in > C++ code using add_definitions. This: > > add_definition( -DMYFOO=\"BAR BAZ\" ) > > works fine on linux, but breaks with MSVC6 on windows. I always thought > I unders

[CMake] problem getting defines quoted properly

2011-01-14 Thread Andreas Pakulat
Hi, I'm trying to set a define so that it can be used as string-literal in C++ code using add_definitions. This: add_definition( -DMYFOO=\"BAR BAZ\" ) works fine on linux, but breaks with MSVC6 on windows. I always thought I understood cmake's quoting rules, but apparently I'm wrong :( I've alr