On Tue, Oct 25, 2011 at 1:09 PM, Dan Kegel <[email protected]> wrote:

> On Tue, Oct 25, 2011 at 10:05 AM, Dan Kegel <[email protected]> wrote:
> >    CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C
> --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic  CFLAGS="-g
> -O2 -fPIC"
>
> Turns out the workaround is
>
>    CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C
> --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic
> CFLAGS=-g\ -O2\ -fPIC
>
> That's just freaky.  I've never seen backslashes and double-quotes
> behave differently like that.  I guess quotes are "stickier" in cmake
> than in shell.
> - Dan
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>

If that works, then I'm pretty sure you could also do:

"CFLAGS=-g -O2 -fPIC"

The call to cmake's ExternalProject_Add function is the thing that parses at
the space separation boundary. Having double quotes around the whole thing
that's supposed to be "one arg" to configure should work.
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to