[CMake] A potential bug ?

Alexander Neundorf a.neundorf-work at gmx.net
Fri Apr 24 14:02:19 EDT 2009


On Friday 24 April 2009, Theodore Papadopoulo wrote:
> I'm trying to use cmake for one of my projects.
>
> As an experience, I have tried to mimick the gnu make check as indicated
> in the web pages, 

Where ?

> but decided
> for some reason to keep the "test" target name. But when, I issuing a
> ADD_DEPENDENCIES(test XXX)
> cmake tells me that there is no dependency name "test", but when I'm
> trying to add one, then it claims there

CMake generates already a target named "test", but this is a "special target", 
you cannot use it with add_dependencies().
Just use a different name for that.

Alex


More information about the CMake mailing list