Order of link directories
David Faure
faure at kde.org
Fri Feb 2 21:46:44 CET 2007
What makes up the order of the link directories with cmake?
`cmake --help-command link_directories` doesn't mention what happens when calling it multiple times,
and I also don't know where builddir/lib gets added to the link directories.
The problem I'm seeing is that kdepim's libakonadi test is linking to the installed libakonadi
instead of the one that was compiled in the same module, in kdepim/lib.
cd /d/kde/build/4/kdepim/akonadi/libakonadi/tests && /d/other/inst/icecream/bin/c++ -pipe -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -fno-check-new -fno-common -fno-threadsafe-statics -fvisibility=hidden -O2 -g -fPIC "CMakeFiles/collectioncreator.dir/collectioncreator.o" -o collectioncreator -rdynamic -L/usr/local/lib -L/d/kde/src/4/qt-copy/lib -L/usr/lib64 -L/d/kde/inst/kde4/lib -L/d/kde/build/4/kdepim/lib -lakonadi -lQtNetwork -lkdecore -lQtSvg -lQtDBus -lutil -lz -lbz2 -lresolv -lidn -lXtst -lSM -lICE -lX11 -lXext -lXft -lXau -lXdmcp -lXpm -lQt3Support -lQtXml -lkdefx -lQtCore -lpthread -lQtGui -lkdeui -lkmime -Wl,-rpath,/usr/local/lib:/d/kde/src/4/qt-copy/lib:/usr/lib64:/d/kde/inst/kde4/lib:/d/kde/build/4/kdepim/lib
/usr/bin/ld: warning: libkmime.so.2, needed by /d/kde/inst/kde4/lib/libakonadi.so, may conflict with libkmime.so.4
[and then some errors due to using the installed libakonadi.so instead of the one in kdepim/lib]
-L/d/kde/inst/kde4/lib -L/d/kde/build/4/kdepim/lib
should be
-L/d/kde/build/4/kdepim/lib -L/d/kde/inst/kde4/lib
How do I ensure that this is the case in all modules?
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
More information about the Kde-buildsystem
mailing list