<div class="gmail_quote">On Thu, Dec 16, 2010 at 03:41, Barry Smith <span dir="ltr"><<a href="mailto:bsmith@mcs.anl.gov">bsmith@mcs.anl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Note that configure/make handles what I do just fine but Jed's cmake had trouble and suggested changing configure to move the variables.</blockquote></div><br><div>Using CC="gcc -m32" literally means that spaces in paths cannot be supported.  BuildSystem mostly doesn't support spaces in paths out of laziness.  But if commands are created in a way that the above will work, then paths cannot possibly have spaces.  CMake functions correctly with spaces in paths at the cost of having to treat the compiler path separately from flags.</div>
<div><br></div><div>I propose attempting to find CC="/long string/with -spaces" as a single path first and if that fails, break it on spaces, try to use the first item as a compiler, and put the rest into the various flags variables.  That won't work on "/long string/with -spaces", but it will work for "gcc -flags" and "/path/to/gcc -flags".</div>