[CMake] Native Pathsupport under Windows

Torsten Martinsen tma at gatehouse.dk
Tue Oct 23 09:13:28 EDT 2007


alexander at camek.de <> 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+${RESULT}\\test.h ${RESULT}\\image.h
> VERBATIM)

To copy files, use "${CMAKE_COMMAND} -E copy".

-Torsten

This e-mail and any files sent with it contain information that may be privileged or confidential and is the property of the GateHouse Group. This information is intended solely for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use the message or any part thereof. If you have received this e-mail in error, please notify the sender immediately, and delete all copies of this message. In accordance with GateHouse Security Policy, e-mails sent or received may be monitored.


More information about the CMake mailing list