Am Sonntag, 4. März 2012, 13:36:57 schrieb Kevin Nathan:
> On Sun, 04 Mar 2012 21:30:21 +0100
>
> Rolf Eike Beer <[email protected]> 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

Attachment: signature.asc
Description: This is a digitally signed message part.

--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to