mirror of
https://github.com/reactos/CMake.git
synced 2025-01-01 08:18:33 +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.
13 lines
350 B
CMake
13 lines
350 B
CMake
PROJECT( LinkLine )
|
|
|
|
# Makes sure that the library order as specified by the user are
|
|
# unchanged by dependency analysis, etc. libOne and libTwo are
|
|
# dependent on each other. The link line should be -lOne -lTwo -lOne.
|
|
|
|
ADD_LIBRARY( One One.c )
|
|
ADD_LIBRARY( Two Two.c )
|
|
|
|
LINK_LIBRARIES( One Two )
|
|
ADD_EXECUTABLE( Exec Exec.c )
|
|
LINK_LIBRARIES( One )
|