Re: [CMake] Native Pathsupport under Windows

2007-10-24 Thread alexander
Hi all, Hi Brandon, >You'll need to write your own native path function for MinGW generator >as a workaround. STRING(REPLACE "/" "\\" native_path "${cmake_path}") >will probably do it, but maybe there's more to it. It's been awhile >since I messed with these. Works great, now i can do a native

Re: [CMake] Native Pathsupport under Windows

2007-10-24 Thread Brandon Van Every
On 10/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > That doesn't work. I think it is the same problem why I can't use FILE() at > all. > Because the file i want to append is both, generated before and used as a > source file. You'll need to write your own native path function for MinGW

Re: [CMake] Native Pathsupport under Windows

2007-10-24 Thread alexander
Hi, >> To copy files, use "${CMAKE_COMMAND} -E copy". >He doesn't just want to copy files, he wants to concatenate two files >(copy >file1+file2 destfile). I doesn't look like cmake provides a built >in "cmake >-E" command for that. >One possibility is to use a separate cmake script to do th

Re: [CMake] Native Pathsupport under Windows

2007-10-23 Thread Brandon Van Every
On 10/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > >> I need to use under windows the buildin commands of the shell. But > >> when I run these commands they doesn't work correctly, because the > >> windows commands doen't like the slashes (/). It seems to me that > >> they want to

Re: [CMake] Native Pathsupport under Windows

2007-10-23 Thread James Bigler
On Oct 23, 2007, at 7:13 AM, Torsten Martinsen wrote: [EMAIL PROTECTED] <> wrote: FILE(TO_NATIVE_PATH ...) When I do a FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR} RESULT) and then use ${RESULT} I get the whole again with slashes. So I can't use that with custom_command: ADD_CUSTOM_COMMA

RE: [CMake] Native Pathsupport under Windows

2007-10-23 Thread Torsten Martinsen
[EMAIL PROTECTED] <> wrote: >> FILE(TO_NATIVE_PATH ...) > > When I do a FILE(TO_NATIVE_PATH ${CMAKE_CURRENT_BINARY_DIR} RESULT) > and then use ${RESULT} I get the whole again with slashes. > So I can't use that with custom_command: > ADD_CUSTOM_COMMAND(... > COMMAND copy ${RESULT}\\image.h+${RESUL

RE: [CMake] Native Pathsupport under Windows

2007-10-23 Thread alexander
Hi, >> I need to use under windows the buildin commands of the shell. But >> when I run these commands they doesn't work correctly, because the >> windows commands doen't like the slashes (/). It seems to me that >> they want to get backslashes (\). >> 1. Is there a possiblity to get backslashes

RE: [CMake] Native Pathsupport under Windows

2007-10-23 Thread Torsten Martinsen
[EMAIL PROTECTED] <> wrote: > I need to use under windows the buildin commands of the shell. But > when I run these commands they doesn't work correctly, because the > windows commands doen't like the slashes (/). It seems to me that > they want to get backslashes (\). > 1. Is there a possiblity