[CMake] Generated library location
Rolf Eike Beer
eike at sf-mail.de
Sun Mar 4 16:12:59 EST 2012
Am Sonntag, 4. März 2012, 13:36:57 schrieb Kevin Nathan:
> On Sun, 04 Mar 2012 21:30:21 +0100
>
> Rolf Eike Beer <eike at sf-mail.de> wrote:
> >Remove it altogether. Link_directories() is never needed when linking
> >to a target built in the same CMake project. You must only make sure
> >that the library is built before the executables.
>
> I need it, though, for additional libs (KDE, Qt, MySQL, etc.) but I
> will keep that in mind for some of my other projects that I am
> converting to CMake...
No, you certainly don't need it. Just pass the absolute path of the external
libraries to target_link_libraries.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120304/fda6e985/attachment.pgp>
More information about the CMake
mailing list