Well, certainly you could put your project in a path without any spaces in the path name until the bug is fixed...<div><br><br><div class="gmail_quote">On Fri, Dec 4, 2009 at 8:17 PM, Song Zhiwei <span dir="ltr">&lt;<a href="mailto:songzw@gmail.com">songzw@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Before the bug fixed, is there any way inside CMake to add &amp;quot;<br>
around the filename? Use special commands?<br>
<br>
Zhiwei<br>
<br>
2009/12/3 Song Zhiwei &lt;<a href="mailto:songzw@gmail.com">songzw@gmail.com</a>&gt;:<br>
&gt; CMake 2.8.0 on Windows<br>
&gt;<br>
&gt; 2009/12/3 John Drescher &lt;<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>&gt;:<br>
<div class="im">&gt;&gt;&gt; I use CMake to generate a Code::Blocks MinGW Makefiles for my project<br>
&gt;&gt;&gt; Module4Test. Module4Test.cbp contains lines as below:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;         &lt;MakeCommands&gt;<br>
&gt;&gt;&gt;            &lt;Build command=&quot;C:/MinGW/bin/mingw32-make.exe -f<br>
&gt;&gt;&gt; C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
&gt;&gt;&gt; module4test/fast&quot; /&gt;<br>
&gt;&gt;&gt;            &lt;CompileFile command=&quot;C:/MinGW/bin/mingw32-make.exe -f<br>
&gt;&gt;&gt; C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
&gt;&gt;&gt; &amp;quot;$file&amp;quot;&quot; /&gt;<br>
&gt;&gt;&gt;            &lt;Clean command=&quot;C:/MinGW/bin/mingw32-make.exe -f<br>
&gt;&gt;&gt; C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
&gt;&gt;&gt; clean&quot; /&gt;<br>
&gt;&gt;&gt;            &lt;DistClean command=&quot;C:/MinGW/bin/mingw32-make.exe -f<br>
&gt;&gt;&gt; C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
&gt;&gt;&gt; clean&quot; /&gt;<br>
&gt;&gt;&gt;         &lt;/MakeCommands&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; As you noticed, no &amp;quot; are added around C:/Documents\<br>
&gt;&gt;&gt; ..../Makefile, so the build fails.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Is it a bug?<br>
&gt;&gt;&gt;<br>
&gt;&gt;<br>
</div><div class="im">&gt;&gt; No its actually escaped correctly for *nix but not windows.<br>
&gt;&gt;<br>
&gt;&gt; What version of CMake are you using?<br>
&gt;&gt; John<br>
&gt;&gt;<br>
&gt;<br>
</div><div><div></div><div class="h5">_______________________________________________<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></div>