[CMake] Linking directories on a "sub" CMakeLists

Xavier Larrode Xavier.Larrode at irisa.fr
Tue Aug 22 11:25:55 EDT 2006


Ok perfect
thanks
Brad King a écrit :
> Xavier Larrode wrote:
>   
>> Hi Brad and thanks, it seems better.
>> But now i have this error :
>> Error: Attempt to add link library "RelationPosition" to target
>> "PieMenu" which is not built by this project.
>>
>> What's wrong with that ?
>> should i add the library differently ?
>>     
>
> Use FIND_LIBRARY to locate the library and obtain a full path to it.
> Then reference it from TARGET_LINK_LIBRARIES.  Then you don't even need
> a LINK_DIRECTORIES command at all.
>
> -Brad
> _______________________________________________
> CMake mailing list
> CMake at cmake.org
> http://www.cmake.org/mailman/listinfo/cmake
>   

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Xavier.Larrode.vcf
Type: text/x-vcard
Size: 169 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20060822/a4a4dbda/Xavier.Larrode.vcf


More information about the CMake mailing list