[CMake] install(EXPORT ...) includes target "B" which requires target "A" that is not in the export set

Alexander Neundorf a.neundorf-work at gmx.net
Thu Sep 11 17:32:54 EDT 2014


On Thursday, September 11, 2014 23:51:21 Nico Schlömer wrote:
> Hi all,
> 
> One of my projects contains two libraries libA and libB, where libB
> depends on libA, and both are exporting their configuration through
> the usual `INSTALL(EXPORT ...)` mechanisms.
> I'm getting errors of the type
> ```
> CMake Error: install(EXPORT "SEACASNemesis-exports" ...) includes
> target "nemesis" which requires target "exodus" that is not in the
> export set.
> ```
> now, and I'm not quite sure what they mean. Do all of my export files
> have to be self-contained?

IIRC, it should complain if it detects that a target is needed which is not 
exported at all.

Alex



More information about the CMake mailing list