Did you try playing around with:<br>
<br>
file(TO_CMAKE_PATH path result)<br><div>
file(TO_NATIVE_PATH path result)<br></div><div><br></div><div>I did try file(TO_NATIVE_PATH path result) at the time, but it was not useful in my case.</div><div>The result is still a unix style path (maybe because I am using Cygwin)</div>
<div><br></div><div>Thanks</div><div>Ajay</div><br><div class="gmail_quote">On Mon, Mar 19, 2012 at 11:00 AM, Eric Noulard <span dir="ltr"><<a href="mailto:eric.noulard@gmail.com">eric.noulard@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">2012/3/19 Ajay Panyala <<a href="mailto:ajay@csc.lsu.edu">ajay@csc.lsu.edu</a>>:<br>
<div class="im">> Please notice the linebreak after Foo, this causes the linker to fail,<br>
> 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<br>
> am using cmake 2.8.2 on Windows 7.<br>
><br>
> I have the exact same whitespace issue with a custom command. I am using<br>
> cmake 2.8.4 with Cygwin<br>
> on Windows XP. I have not tried to fix it yet since it was not too urgent<br>
> for me.<br>
><br>
> My guess is (I maybe wrong) that it may have something to do with the way<br>
> Windows paths ( "C:/Projects/Foo")<br>
> are specified. I think CMake has something to handle this, but I do not know<br>
> what that would be.<br>
<br>
</div>Did you try playing around with:<br>
<br>
file(TO_CMAKE_PATH path result)<br>
file(TO_NATIVE_PATH path result)<br>
<br>
cmake --help-command file<br>
<div><div class="h5"><br>
><br>
> Thanks<br>
> Ajay<br>
><br>
> On Mon, Mar 19, 2012 at 7:51 AM, Paul Baumer <<a href="mailto:paul.baumer2@googlemail.com">paul.baumer2@googlemail.com</a>><br>
> wrote:<br>
>><br>
>> Hello,<br>
>><br>
>> I have the following in my Cmakelists.txt file:<br>
>><br>
>> set_target_properties( MyApp PROPERTIES STATIC_LIBRARY_FLAGS<br>
>> "${SOME_LIB_FILENAME}")<br>
>><br>
>> If the SOME_LIB_FILENAME path includes white space such as<br>
>><br>
>> c:/Projects/Foo 4/Src/somelib.lib<br>
>><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,<br>
>> 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.<br>
>> I am using cmake 2.8.2 on Windows 7.<br>
>><br>
>> Any ideas?<br>
>><br>
>> Paul<br>
>><br>
>><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<br>
>> <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:<br>
>> <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>
><br>
><br>
><br>
><br>
><br>
><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<br>
> <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:<br>
> <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>
<br>
<br>
<br>
</div></div><font color="#888888">--<br>
Erk<br>
Le gouvernement représentatif n'est pas la démocratie --<br>
<a href="http://www.le-message.org" target="_blank">http://www.le-message.org</a><br>
</font></blockquote></div><br><br clear="all"><br><br>