Hi All,

  On windows, I pass CMAKE_INSTALL_PREFIX on the command line e.g.
"-DCMAKE_INSTALL_PREFIX=c:\some\path".  In my cmake code I use
variable which contain the suffixes  /lib, /man/man1 etc...

The install commands end up looking like this,

  C:\some\path/man/man1/some_man_file

In 2.4 this appears to work, in 2.6 it throws an error about invalid
escape sequences.

I have tried to use

FILE(TO_CMAKE_PATH "${CMAKE_INSTALL_PREFIX}" TEMP_PREFIX)
SET(CMAKE_INSTALL_PREFIX "${TEMP_PREFIX}" CACHE INTERNAL "my prefix")

But that doesn't seem to stick, I suspect it's because I am passing it
in on the command line.

What is the best way to deal with this?

TIA,
George
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to