[CMake] Configuring .bat file with native path under windows

Eric Noulard eric.noulard at gmail.com
Tue Oct 14 12:16:55 EDT 2008


2008/10/14 Nicolas Desprès <nicolas.despres at gmail.com>:
> On Tue, Oct 14, 2008 at 4:48 PM, Andy Lego <andy at legoandy.com> wrote:
>> Hi,
>>
>> Look at FILE and STRING commands.
>
> Thanks. That's what I did.

May be

FILE(TO_NATIVE_PATH ${in} ${out})

is easier than string(REPLACE ...

 TO_NATIVE_PATH works just like TO_CMAKE_PATH, but will convert from a
       cmake style path into the native path style \ for windows and / for
       UNIX.


-- 
Erk


More information about the CMake mailing list