Skip to content
  • Brad King's avatar
    BUG: Avoid bogus dependency on executable targets · d76b20bf
    Brad King authored
    When an executable target within the project is named in
    target_link_libraries for another target, but the executable does not
    have the ENABLE_EXPORTS property set, then the executable cannot really
    be linked.  This is probably a case where the user intends to link to a
    third-party library that happens to have the same name as an executable
    target in the project (or else will get an error at build time).  We
    need to avoid making the other target depend on the executable target
    incorrectly, since the executable may actually want to link to that
    target and this is not a circular depenency.
    d76b20bf