[CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link shared library with the full path obtained from find_library, my library is passed to gcc without -l option as ordinary object file.

Re: [CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Andreas Pakulat
Hi, On Mon, Apr 23, 2012 at 13:24, Vyacheslav Karamov ubuntul...@yandex.ruwrote: Hi All! I have a problem with target_link_libraries. It can't link with shared libraries not from directory listed in LD_LIBRARY_PATH. 1. When I try to link shared library with the full path obtained from

Re: [CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Vyacheslav Karamov
Hi! I just find the solution. The problem was in order how libraries were specified. target_link_libraries(${lib_name} general rt general dl general pthread debug ${do_scoring_debug} optimized ${do_scoring} general ${spinx} general ${cblas} general ${atlas} ) 23.04.2012 16:28, Andreas

Re: [CMake] target_link_libraries can't link shared libraries not listed in LD_LIBRARY_PATH

2012-04-23 Thread Rolf Eike Beer
Hi! I just find the solution. The problem was in order how libraries were specified. target_link_libraries(${lib_name} general rt general dl general pthread debug ${do_scoring_debug} optimized ${do_scoring} general ${spinx} general ${cblas} general ${atlas} ) You don't need the