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

Matthew Woehlke mw_triad at users.sourceforge.net
Tue Mar 20 15:08:41 EST 2007


Bill Hoffman wrote:
> Matthew Woehlke wrote:
>> (For some reason, your reply is not showing up on gmane :-(.)
>>
> It should be there now.

Yup, it finally showed... an hour later. :-)

>> 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.

I tried a simple test and it does indeed seem to be fixed in CVS. Thanks!

-- 
Matthew
"What a wonderful smell you've discovered!" -- Princess Leia Organa



More information about the CMake mailing list