Please notice the linebreak after Foo, this causes the linker to fail, saying it can not find "C:/Projects/Foo".<br><br><div>I guess this is a cmake bug, but I need to find a workaround for this one. I am using cmake 2.8.2 on Windows 7.<br>
</div><div><br></div><div>I have the exact same whitespace issue with a custom command. I am using cmake 2.8.4 with Cygwin</div><div>on Windows XP. I have not tried to fix it yet since it was not too urgent for me.</div><div>
<br></div><div>My guess is (I maybe wrong) that it may have something to do with the way Windows paths ( "C:/Projects/Foo")</div><div>are specified. I think CMake has something to handle this, but I do not know what that would be.</div>
<div><br></div><div>Thanks</div><div>Ajay</div><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 7:51 AM, Paul Baumer <span dir="ltr"><<a href="mailto:paul.baumer2@googlemail.com">paul.baumer2@googlemail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br><br>I have the following in my Cmakelists.txt file:<br><br> set_target_properties( MyApp PROPERTIES STATIC_LIBRARY_FLAGS "${SOME_LIB_FILENAME}")<br>
<br><div>If the SOME_LIB_FILENAME path includes white space such as</div>
<div><br></div><div>c:/Projects/Foo 4/Src/somelib.lib<br></div><br>the generated visual studio 2008 file includes the following fragment:<br><br> <Tool Name="VCLibrarianTool"<br> AdditionalOptions="'"C:/Projects/Foo<br>
4/Src/somelib.lib"'"<br><br>Please notice the linebreak after Foo, this causes the linker to fail, saying it can not find "C:/Projects/Foo".<br><br>I guess this is a cmake bug, but I need to find a workaround for this one. I am using cmake 2.8.2 on Windows 7.<br>
<br><div>Any ideas?<br></div><font color="#888888"><div><br></div><div>Paul</div><br>
</font><br>--<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></blockquote></div><br><br clear="all"><br><br>