[CMake] dependency in custom command?

Alexander Neundorf a.neundorf-work at gmx.net
Sat Sep 5 15:35:21 EDT 2009


On Friday 28 August 2009, King, Steven R wrote:
> > You don't need to do this. Since "my_module" is a CMake target, you can
> > just use "my_module" instead of ${SO_LOCATION} in the custom_command
> > below and CMake will figure out where the .so is on the disk>
>
> Hi Tyler  -- Substituting my_module did not work.  The copy fails.  Is this
> a cmake bug?

AFAIK this works only for the executable which is called by COMMAND:

add_custom_command ( ... COMMAND <executable> ... )

So, it's not a bug, this feature does not exist.

Alex


More information about the CMake mailing list