[CMake] CMAKE_INSTALL_PREFIX

David Cole david.cole at kitware.com
Wed Mar 18 13:53:17 EDT 2009


Use all "/" instead of "\" -- cmake understands either, but the "/" do not
have to be escaped...

On Wed, Mar 18, 2009 at 1:43 PM, George Neill <georgen at neillnet.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20090318/dc0176c5/attachment.htm>


More information about the CMake mailing list