[CMake] Re: ADD_DEPENDENCIES: "non-existent target"??

Bill Hoffman hoffman.mlist at gmail.com
Tue Mar 20 14:39:39 EST 2007


Matthew Woehlke wrote:
>
> (For some reason, your reply is not showing up on gmane :-(.)
>
It should be there now.
> CMake 2.4.6.
>
> I was able to achieve the effect I want with ADD_SUBDIRECTORY (bummer 
> that not taking multiple subdirs, although it would be trivial to 
> macro-ize that) by removing EXCLUDE_FROM_ALL from the examples targets 
> and adding the examples directory as EXCLUDE_FROM_ALL. This works 
> great. But even using ADD_DIRECTORY I can't seem to add dependencies 
> to targets from parent directories, which seems like an annoying (and 
> unexpected) limitation... especially since TARGET_LINK_LIBRARIES is 
> perfectly capable of creating dependencies across branches.
>
OK, this is a bug that will be fixed in 2.4.7.  It is already in the 
branch in CVS, but there is no official release yet.
If you can build from source, you can check out with -r CMake-2-4, to 
get the branch source code.  If that
does not work for you let me know.

-Bill




More information about the CMake mailing list