View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0012595CMakeCMakepublic2011-11-28 15:332012-04-02 10:10
Reporterdevurandom 
Assigned ToBrad King 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionduplicate 
PlatformLinux x86-64OSOS Version
Product Version 
Target VersionFixed in Version 
Summary0012595: Missing dependencies for imported libraries are being ignored
Descriptionadd_library(test IMPORTED)
add_dependencies(test NonExistentTarget)

This will not cause an error report about NonExistentTarget, using v2.8.6 of cmake.
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0009188closedNils Gladitz ADD_DEPENDENCIES silently accepts invalid target names 

  Notes
(0027862)
Brad King (manager)
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 (manager)
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 (manager)
2012-04-02 10:10

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2011-11-28 15:33 devurandom New Issue
2011-11-28 15:37 Brad King Note Added: 0027862
2011-11-28 15:47 Brad King Note Added: 0027863
2011-11-28 15:47 Brad King Relationship added duplicate of 0009188
2011-11-28 15:47 Brad King Status new => resolved
2011-11-28 15:47 Brad King Resolution open => duplicate
2011-11-28 15:47 Brad King Assigned To => Brad King
2012-04-02 10:10 David Cole Note Added: 0029051
2012-04-02 10:10 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team