[cmake-developers] [CMake 0012588]: install(EXPORTS) does not work well with dependencies

Stephen Kelly steveire at gmail.com
Tue Nov 22 09:31:10 EST 2011


> In KDE we're starting to use install(EXPORTS) and config files. We are
> building libraries with dependencies on one another which are in different
> export sets.
> 
> Different export sets are needed to create different Targets files, which
> can be included in different Config files. If the attached example were
> more complete, there would be a oneConfig.cmake which includes
> oneDeps.cmake, and a twoConfig.cmake which includes twoDeps.cmake.
> 
> At cmake time we get this error:
> 
> CMake Error: INSTALL(EXPORT "twoDeps" ...) includes target "libtwo" which
> requires target "libone" that is not in the export set.
> 
> How can we resolve this?

http://public.kitware.com/Bug/view.php?id=12588 

Brad asked to bring this up on the list for discussion.

Is this situation resolvable?

Thanks,

Steve.





More information about the cmake-developers mailing list