MantisBT - CMake
View Issue Details
0012595CMakeCMakepublic2011-11-28 15:332012-04-02 10:10
devurandom 
Brad King 
normalmajoralways
closedduplicate 
Linux x86-64
 
 
0012595: Missing dependencies for imported libraries are being ignored
add_library(test IMPORTED)
add_dependencies(test NonExistentTarget)

This will not cause an error report about NonExistentTarget, using v2.8.6 of cmake.
No tags attached.
duplicate of 0009188closed Nils Gladitz ADD_DEPENDENCIES silently accepts invalid target names 
Issue History
2011-11-28 15:33devurandomNew Issue
2011-11-28 15:37Brad KingNote Added: 0027862
2011-11-28 15:47Brad KingNote Added: 0027863
2011-11-28 15:47Brad KingRelationship addedduplicate of 0009188
2011-11-28 15:47Brad KingStatusnew => resolved
2011-11-28 15:47Brad KingResolutionopen => duplicate
2011-11-28 15:47Brad KingAssigned To => Brad King
2012-04-02 10:10David ColeNote Added: 0029051
2012-04-02 10:10David ColeStatusresolved => closed

Notes
(0027862)
Brad King   
2011-11-28 15:37   
From the documentation of add_dependencies:

 "Dependencies added to an IMPORTED target are followed transitively in
  its place since the target itself does not build."

The dependencies of an IMPORTED target are only evaluated when a real target has a dependency on that imported target.
(0027863)
Brad King   
2011-11-28 15:47   
Actually this has nothing to do with an IMPORTED target. ALL dependencies on unknown targets are ignored. Closing as duplicate of 0009188.
(0029051)
David Cole   
2012-04-02 10:10   
Closing resolved issues that have not been updated in more than 4 months.