MantisBT - CMake
View Issue Details
0012588CMake(No Category)public2011-11-22 09:092015-03-16 14:27
Stephen Kelly 
Stephen Kelly 
normalminorhave not tried
closedfixed 
 
CMake 2.8.10CMake 2.8.10 
0012588: install(EXPORTS) does not work well with dependencies
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?

No tags attached.
gz install_exports.tar.gz (8,156) 2011-11-22 09:09
https://public.kitware.com/Bug/file/4121/install_exports.tar.gz
Issue History
2011-11-22 09:09Stephen KellyNew Issue
2011-11-22 09:09Stephen KellyFile Added: install_exports.tar.gz
2011-11-22 09:26Brad KingNote Added: 0027848
2011-11-22 09:26Brad KingStatusnew => resolved
2011-11-22 09:26Brad KingResolutionopen => suspended
2011-11-22 09:26Brad KingAssigned To => Brad King
2012-02-19 10:04Brad KingNote Added: 0028636
2012-02-19 10:04Brad KingStatusresolved => feedback
2012-02-19 10:04Brad KingResolutionsuspended => reopened
2012-02-19 10:04Brad KingAssigned ToBrad King =>
2012-02-19 10:04Brad KingStatusfeedback => backlog
2012-11-20 05:37Stephen KellyNote Added: 0031617
2012-11-20 07:59Brad KingNote Added: 0031618
2012-11-20 07:59Brad KingAssigned To => Stephen Kelly
2012-11-20 07:59Brad KingStatusbacklog => resolved
2012-11-20 07:59Brad KingResolutionreopened => fixed
2012-11-20 07:59Brad KingFixed in Version => CMake 2.8.10
2012-11-20 07:59Brad KingTarget Version => CMake 2.8.10
2013-04-17 08:54Robert MaynardNote Added: 0032872
2013-04-17 08:54Robert MaynardStatusresolved => closed

Notes
(0027848)
Brad King   
2011-11-22 09:26   
The command works exactly as intended. We do not currently support multiple dependent exports in one build tree. Please bring this up on the developers list for discussion.
(0028636)
Brad King   
2012-02-19 10:04   
Discussion from mailing list:

  http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/2285/focus=2299 [^]
  http://www.cmake.org/pipermail/cmake-developers/2011-November/002597.html [^]

  http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/2833/focus=3016 [^]
  http://www.cmake.org/pipermail/cmake-developers/2012-February/003330.html [^]
(0031617)
Stephen Kelly   
2012-11-20 05:37   
Should this be closed now that CMake 2.8.10 is out?
(0031618)
Brad King   
2012-11-20 07:59   
Yes, thanks!
(0032872)
Robert Maynard   
2013-04-17 08:54   
Closing resolved issues that have not been updated in more than 4 months.