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
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
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
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
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
[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
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
[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