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

ADD_EXECUTABLE( exec2 ExecMain.c )