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"><<a href="mailto:songzw@gmail.com">songzw@gmail.com</a>></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 &quot;<br>
around the filename? Use special commands?<br>
<br>
Zhiwei<br>
<br>
2009/12/3 Song Zhiwei <<a href="mailto:songzw@gmail.com">songzw@gmail.com</a>>:<br>
> CMake 2.8.0 on Windows<br>
><br>
> 2009/12/3 John Drescher <<a href="mailto:drescherjm@gmail.com">drescherjm@gmail.com</a>>:<br>
<div class="im">>>> I use CMake to generate a Code::Blocks MinGW Makefiles for my project<br>
>>> Module4Test. Module4Test.cbp contains lines as below:<br>
>>><br>
>>> <MakeCommands><br>
>>> <Build command="C:/MinGW/bin/mingw32-make.exe -f<br>
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
>>> module4test/fast" /><br>
>>> <CompileFile command="C:/MinGW/bin/mingw32-make.exe -f<br>
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
>>> &quot;$file&quot;" /><br>
>>> <Clean command="C:/MinGW/bin/mingw32-make.exe -f<br>
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
>>> clean" /><br>
>>> <DistClean command="C:/MinGW/bin/mingw32-make.exe -f<br>
>>> C:/Documents\ and\ Settings/Song\ Zhiwei/Desktop/build2/src/Makefile<br>
>>> clean" /><br>
>>> </MakeCommands><br>
>>><br>
>>> As you noticed, no &quot; are added around C:/Documents\<br>
>>> ..../Makefile, so the build fails.<br>
>>><br>
>>> Is it a bug?<br>
>>><br>
>><br>
</div><div class="im">>> No its actually escaped correctly for *nix but not windows.<br>
>><br>
>> What version of CMake are you using?<br>
>> John<br>
>><br>
><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>