[cmake-developers] [CMake 0015199]: Better error message for export conflicts

Mantis Bug Tracker mantis at public.kitware.com
Thu Oct 9 05:11:10 EDT 2014


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=15199 
====================================================================== 
Reported By:                Nico Schlömer
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   15199
Category:                   CMake
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2014-10-09 05:11 EDT
Last Modified:              2014-10-09 05:11 EDT
====================================================================== 
Summary:                    Better error message for export conflicts
Description: 
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.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2014-10-09 05:11 Nico Schlömer  New Issue                                    
======================================================================




More information about the cmake-developers mailing list