[CMake] Unneeded escaping: how to stop it?

Steven Van Ingelgem steven at vaningelgem.be
Mon Jan 28 01:44:29 EST 2008


It didn't help very much though :S

Now I get:
COMMAND if [ ! -e TEST ]; then echo ok && echo 2 && echo "test"; fi
==>
if [ ! -e TEST "];" then echo ok "&&" "echo \"test\";" ">/dev/null" fi


So clearly the first case was better :)

On 28/01/2008, Steven Van Ingelgem <steven at vaningelgem.be> wrote:
> No :)
>
>
> Thanks for pointing this out!
>
> On 28/01/2008, Brandon Van Every <bvanevery at gmail.com> wrote:
> > On Jan 27, 2008 9:20 PM, Steven Van Ingelgem <steven at vaningelgem.be> wrote:
> > > Hi,
> > >
> > >
> > > I'm working on a SLES10.
> > >
> > >
> > > I have an "add_custom_command" with in it's command:
> > >
> > > LDFLAGS="-L${PROJECT_SOURCE_DIR}/lib -ldl" ./configure ...etc...
> > >
> > > Now if I go and check the configure log, I see that the LDFLAGS are
> > > interpreted as "-L${PROJECT_SOURCE_DIR}/lib\ -ldl" (watch the escaping
> > > of the " " (space)).
> >
> > Did you try VERBATIM?
> >
> >
> > Cheers,
> > Brandon Van Every
> > _______________________________________________
> > CMake mailing list
> > CMake at cmake.org
> > http://www.cmake.org/mailman/listinfo/cmake
> >
>


More information about the CMake mailing list