View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0015199CMakeCMakepublic2014-10-09 05:112016-06-10 14:31
ReporterNico Schlömer 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionmoved 
PlatformOSOS Version
Product VersionCMake 2.8.12.2 
Target VersionFixed in Version 
Summary0015199: Better error message for export conflicts
DescriptionIf 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0037012)
Brad King (manager)
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 (administrator)
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.

 Issue History
Date Modified Username Field Change
2014-10-09 05:11 Nico Schlömer New Issue
2014-10-09 08:38 Brad King Note Added: 0037012
2016-06-10 14:29 Kitware Robot Note Added: 0042644
2016-06-10 14:29 Kitware Robot Status new => resolved
2016-06-10 14:29 Kitware Robot Resolution open => moved
2016-06-10 14:29 Kitware Robot Assigned To => Kitware Robot
2016-06-10 14:31 Kitware Robot Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team