Use all "/" instead of "\" -- cmake understands either, but the "/" do not have to be escaped...<div><br><br><div class="gmail_quote">On Wed, Mar 18, 2009 at 1:43 PM, George Neill <span dir="ltr"><<a href="mailto:georgen@neillnet.com">georgen@neillnet.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi All,<br>
<br>
On windows, I pass CMAKE_INSTALL_PREFIX on the command line e.g.<br>
"-DCMAKE_INSTALL_PREFIX=c:\some\path". In my cmake code I use<br>
variable which contain the suffixes /lib, /man/man1 etc...<br>
<br>
The install commands end up looking like this,<br>
<br>
C:\some\path/man/man1/some_man_file<br>
<br>
In 2.4 this appears to work, in 2.6 it throws an error about invalid<br>
escape sequences.<br>
<br>
I have tried to use<br>
<br>
FILE(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" TEMP_PREFIX)<br>
SET(CMAKE_INSTALL_PREFIX "${TEMP_PREFIX}" CACHE INTERNAL "my prefix")<br>
<br>
But that doesn't seem to stick, I suspect it's because I am passing it<br>
in on the command line.<br>
<br>
What is the best way to deal with this?<br>
<br>
TIA,<br>
George<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></div>