[CMake] add_custom_command, VERBATIM and cmake-2.6

Hendrik Sattler post at hendrik-sattler.de
Sun May 4 17:32:27 EDT 2008


Hi,

forget that mail, the system was still using RC-5 :-/
Current CVS works just fine.

HS

Hendrik Sattler schrieb:
> Hi,
>
> I have a strange case where the following thing fails in cmake-2.6:
>  add_custom_command (
>    OUTPUT         ${CMAKE_CURRENT_BINARY_DIR}/proj_marshal.c
>    COMMAND   ${GLIB_GENMARSHAL_EXECUTABLE}
>    ARGS              --prefix=proj_marshal proj_marshal.list --body
>                            > ${CMAKE_CURRENT_BINARY_DIR}/proj_marshal.c
>    MAIN_DEPENDENCY   ${CMAKE_CURRENT_SOURCE_DIR}/proj_marshal.list
>    WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}"
>    VERBATIM
>  )
>
> This actually _escapes the > and thus the redirection doesn't work. 
> Removing the VERBATIM _makes_ it work.
> This is opposite to the expected behaviour.
>
>
> Did something change with respect to VERBATIM in CMake-2.6


More information about the CMake mailing list