<div class="gmail_quote">On Tue, Oct 25, 2011 at 1:09 PM, Dan Kegel <span dir="ltr"><<a href="mailto:dank@kegel.com">dank@kegel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Tue, Oct 25, 2011 at 10:05 AM, Dan Kegel <<a href="mailto:dank@kegel.com">dank@kegel.com</a>> wrote:<br>
> CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic CFLAGS="-g -O2 -fPIC"<br>
<br>
</div>Turns out the workaround is<br>
<div class="im"><br>
CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C<br>
--prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic<br>
</div>CFLAGS=-g\ -O2\ -fPIC<br>
<br>
That's just freaky. I've never seen backslashes and double-quotes<br>
behave differently like that. I guess quotes are "stickier" in cmake<br>
than in shell.<br>
<font color="#888888">- Dan<br>
</font><div><div></div><div class="h5">--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br>
</div></div></blockquote></div><br>If that works, then I'm pretty sure you could also do:<br><br>"CFLAGS=-g -O2 -fPIC"<br><br>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.<br>
<br>