[CMake] Double linking / linking static libraries

Dennis Schridde devurandom at gmx.net
Wed Aug 4 03:30:52 EDT 2010


On Wednesday 04 August 2010 09:06:06 Denis Scherbakov wrote:
> >> * I also
set link_directories to paths containing the libraries.
> 
> This is wrong.
LINK_DIRECTORIES should be a list of directories, where
> libraries might be
located, but not the libraries itself.
Er, sorry, I meant to paths to
directories containing the libraries:

link_directories(${QT_LIBRARY_DIR}
${GLU_LIBRARY_DIR} ${OPENMESH_LIBRARY_DIR} ${BOOST_LIBRARY_DIR}
${VIRTUOSE_LIBRARY_DIR})

In fact most of these directories are empty,
except for the Qt and Boost paths. (Still these two are linked two
times.)


Brings me to another question:
Is it possible to get the path to
the library from find_library?

--Dennis
-------------- 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/20100804/c55849de/attachment.pgp>


More information about the CMake mailing list