Skip to content
  • Dan Kegel's avatar
    Re-order link line to place RPATH entries before libraries · 9370b697
    Dan Kegel authored and Brad King's avatar Brad King committed
    Since we support adding arbitrary flags to the link line via
    `target_link_libraries` the project/user may add their own RPATH flags
    (typically for system library locations).  Re-order the link line to
    place our generated RPATH entries before the libraries so that they also
    come before flag-specified entries.  Otherwise our in-build-tree RPATH
    entries may not be preferred by the dynamic loader and we could collide
    with libraries in the system directories.
    
    Closes: #16293
    9370b697