1 # Here, Eight depends on Seven, which has the same dependencies as Five.
2 # If the dependencies of Five are emitted, and then we attempt to emit the
3 # dependencies of Seven, then we find that they have already been done. So:
4 # Original line: Eight Five
5 # Add deps of Five: Eight Five Two ... NoDepA
6 # Now, we must make sure that Seven gets inserted between Five and Two, and
7 # not at the end. Unfortunately, if we get it wrong, the test will only
8 # fail on a platform where the link order makes a difference.
9 LINK_LIBRARIES( Eight Five )
11 ADD_EXECUTABLE( exec2 ExecMain.c )