Re: Re: cmake parallel make problem.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Le mardi 10 janvier 2012 08:18:18 Rex Dieter a écrit :
> Richard Shaw wrote:
> > I've gone through the CMakeLists.txt and added "add_dependencies(..."
> > but I think that's redundant because target_link_libraries is getting
> > set properly.
> 
> I'm not sure this is redundant, as I would imaging it would be hard to infer
> the origin of the target_link_library (ie, if it's local or not).
> 
> (I'll try to look into it, and let you know if I find anything that
> indicates otherwise).

In target_link_library(..), if we want to link with libFooBar.so, that is 
build as the target FooBar in the same project, we can use the name of the 
target "FooBar" instead of "/path/to/libFooBar.so". That way, CMake creates 
the dependency itself.

-- 
Laurent Rineau
http://fedoraproject.org/wiki/LaurentRineau

-- 
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/devel



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux