[CMake] link-interface-libs not empty (or auto-filled)

Andreas Pakulat apaku at gmx.de
Wed Sep 1 18:13:16 EDT 2010


Hi,

I've got a small problem here, I'm building an installing a static
library which links (among other things) against QtCore. I'm also using
the cmake install(TARGETS .. EXPORT) stuff to export a Target.cmake file
with the library as imported target. Last but not least this lib has
some deps in its public API and hence I'm using LINK_INTERFACE_LIBRARIES
to add those. Unfortunately for some reason QtCore is also added which
I'd like to avoid (as it creates a dependency upon an absolute path to
Qt in the installed stuff). I've already tried setting the target
property to "", but its still added automatically by cmake.

Anybody knows of something in cmake that would explain this?

Andreas

-- 
You should emulate your heros, but don't carry it too far.  Especially
if they are dead.


More information about the CMake mailing list