On 04.03.12 13:36:57, Kevin Nathan wrote:
> 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, for those three at least you also don't need link_directories. The
find-modules for all 3 provide the absolute paths to the libraries in
CMake variables which you can use with target_link_libraries directly
and it'll just work. 

Andreas

--

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