adb58d5e36
Strong dependencies (created by add_dependencies) must be honored when linearizing a strongly-connected component of the target dependency graph. The initial graph edges have strong/weak labels and can contain cycles that do not consist exclusively of strong edges. The final graph never contains cycles so all edges can be strong.
7 lines
195 B
CMake
7 lines
195 B
CMake
INCLUDE_DIRECTORIES(${Dependency_BINARY_DIR}/Two)
|
|
ADD_LIBRARY( Four FourSrc.c )
|
|
TARGET_LINK_LIBRARIES( Four One Two NoDepA )
|
|
|
|
# TwoCustom must build before Four.
|
|
ADD_DEPENDENCIES(Four TwoCustom)
|