On 8/4/10 2:06 AM, 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.
Or better yet, skip the link_directories command and use full paths to
your libraries (as a find script should do) as arguments to
target_link_libraries.
Do you have any circular dependencies? If you do, libraries will need
to be linked twice to get all of the symbols resolved properly, in which
case this is a feature. Is the double-linking actually causing a
failure to build?
Ryan
--
Ryan Pavlik
Human-Computer Interaction Graduate Student
Virtual Reality Applications Center
Iowa State University
rpav...@iastate.edu
http://academic.cleardefinition.com/
_______________________________________________
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