<div class="gmail_quote">On Tue, Oct 25, 2011 at 1:09 PM, Dan Kegel <span dir="ltr">&lt;<a href="mailto:dank@kegel.com">dank@kegel.com</a>&gt;</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 &lt;<a href="mailto:dank@kegel.com">dank@kegel.com</a>&gt; wrote:<br>
&gt;    CONFIGURE_COMMAND ${CMAKE_SOURCE_DIR}/celt/configure -C --prefix=${CMAKE_BINARY_DIR}/prefix --disable-shared --with-pic  CFLAGS=&quot;-g -O2 -fPIC&quot;<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&#39;s just freaky.  I&#39;ve never seen backslashes and double-quotes<br>
behave differently like that.  I guess quotes are &quot;stickier&quot; 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&#39;m pretty sure you could also do:<br><br>&quot;CFLAGS=-g -O2 -fPIC&quot;<br><br>The call to cmake&#39;s ExternalProject_Add function is the thing that parses at the space separation boundary. Having double quotes around the whole thing that&#39;s supposed to be &quot;one arg&quot; to configure should work.<br>
<br>