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 the
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 append.
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
Hello List,
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 (\).
A example:
ADD_CUSTOM_COMMAND(OUTPUT
[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 to get
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 instead
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:
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 get backslashes