MantisBT - CMake
View Issue Details
0015199CMakeCMakepublic2014-10-09 05:112016-06-10 14:31
Nico Schlömer 
Kitware Robot 
normalminoralways
closedmoved 
CMake 2.8.12.2 
 
0015199: Better error message for export conflicts
If an export target depends on another target, that other target must either be

 * in the same export set, or
 * in exactly one other export set.

If it is not in the same export set and in more than one other export set, CMake reports
```
CMake Error: install(EXPORT "A" ...) includes target "b" which requires target "c" that is not in this export set, but 5 times in others.
```
This error message is somewhat misleading; one could think that "c" must be in the same export set as "b".

Perhaps a less ambiguous wording would be:
```
CMake Error: install(EXPORT "A" ...) includes target "b" which requires target "c" that is
  * not in this export set, and
  * in more than one other export set (5).
```
I'm sure we can do even better than that.
No tags attached.
Issue History
2014-10-09 05:11Nico SchlömerNew Issue
2014-10-09 08:38Brad KingNote Added: 0037012
2016-06-10 14:29Kitware RobotNote Added: 0042644
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0037012)
Brad King   
2014-10-09 08:38   
Thanks for pointing this out. The ComplainAboutMissingTarget methods house these messages:

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExportBuildFileGenerator.cxx;hb=v3.0.2#l288 [^]

 http://www.cmake.org/gitweb?p=cmake.git;a=blob;f=Source/cmExportInstallFileGenerator.cxx;hb=v3.0.2#l511 [^]

Your proposed wording is better.
(0042644)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.