On 02/28/2013 11:21 AM, Stephen Kelly wrote:
>  target_link_libraries(foo $<TARGET_NAME:Qt4::QtCore>)
> 
> gives 
> 
>  /usr/lib/icecc/bin/c++  -fPIC    -shared -Wl,-soname,libfoo.so -o libfoo.so 
> CMakeFiles/foo.dir/empty.cpp.o 
> /home/stephen/dev/prefix/qt48/lib/libQtCore.so
> 
> rpath info is missing. This is the case with the genex $<1:Qt4::QtCore> too. 
> Where should that be added?

Good catch.

It looks like cmTarget::HaveBuildTreeRPATH still references the old
cmTarget::LinkLibraries member which is not populated by a genex.
It should be refactored to use the new link info.

-Brad
--

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://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to