mirror of
https://github.com/reactos/CMake.git
synced 2024-11-26 04:50:24 +00:00
0e6b39e52f
- Make sure the original link line is untouched - Avoid duplicating the link line when supporting version < 1.4 - Make sure the cyclic dependencies and such are output correctly in complicated cases. - Avoid outputing dependencies that are already satisfied on the original link line when possible.
33 lines
781 B
CMake
33 lines
781 B
CMake
PROJECT( Dependency )
|
|
|
|
# There is one executable that depends on eight libraries. The
|
|
# system has the following dependency graph:
|
|
#
|
|
# NoDepA:
|
|
# NoDepB: NoDepA
|
|
# NoDepC: NoDepA
|
|
# One:
|
|
# Two: Three
|
|
# Three: One Four
|
|
# Four: One Two NoDepA
|
|
# Five: Two
|
|
# SixA: Two Five
|
|
# SixB: Four Five
|
|
# Seven: Two
|
|
# Eight: Seven
|
|
#
|
|
# Exec: NoDepB NoDepC SixA SixB
|
|
# Exec2: Eight Five
|
|
# Exec3: Eight Five
|
|
# Exec4: Five Two
|
|
#
|
|
# The libraries One,...,Eight have their dependencies explicitly
|
|
# encoded. The libraries NoDepA,...,NoDepC do not.
|
|
#
|
|
# Although SixB does not depend on Two, there is a dependency listed
|
|
# in the corresponding CMakeLists.txt just because of commands used.
|
|
|
|
SUBDIRS( NoDepA NoDepB NoDepC )
|
|
SUBDIRS( One Two Three Four Five Six Seven Eight )
|
|
SUBDIRS( Exec Exec2 Exec3 Exec4 )
|