[CMake] add_custom_command, VERBATIM and cmake-2.6
Hendrik Sattler
post at hendrik-sattler.de
Sun May 4 18:15:08 EDT 2008
Hendrik Sattler schrieb:
I must correct myself. It works with:
- Windows, NMake Makefiles, Cmake-2.6 RC-9
- Linux, Unix Makefiles, CMake-CVS (RC-5 does not work)
It does not work with:
- Cygwin, Unix Makefiles, Cmake-2.6 RC-10
What's going on?
HS
> 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