[CMake] add_custom_command not triggered
Nils Gladitz
nilsgladitz at gmail.com
Sat Oct 31 11:17:33 EDT 2015
On 31.10.2015 15:49, Nico Schlömer wrote:
>
> add_custom_command(
> OUTPUT ${CMAKE_BINARY_DIR}/test/data/pacman.e.2.0
> COMMAND decomp -p 2 ${CMAKE_BINARY_DIR}/test/data/pacman.e
> DEPENDS noshTestFetchData
> )
>
I don't know anything about the ExternalData module but assuming this is
unrelated ...
do you have a target that depends on the new output?
Without one the custom command does not get emitted.
E.g. add_custom_target(foobar ALL DEPENDS
${CMAKE_BINARY_DIR}/test/data/pacman.e.2.0)
or list it in the sources of an existing add_executable() or
add_library() target.
Nils
More information about the CMake
mailing list