diff --git a/Tests/Dependency/Case2/CMakeLists.txt b/Tests/Dependency/Case2/CMakeLists.txt index 764338ebb..18100cd5d 100644 --- a/Tests/Dependency/Case2/CMakeLists.txt +++ b/Tests/Dependency/Case2/CMakeLists.txt @@ -1,8 +1,8 @@ project(CASE2 C) -add_library(case2Foo1 STATIC foo1.c) -add_library(case2Foo2 STATIC foo2.c) -add_library(case2Foo3 STATIC foo3.c) +add_library(case2Foo1 STATIC foo1.c foo1b.c) +add_library(case2Foo2 STATIC foo2.c foo2b.c) +add_library(case2Foo3 STATIC foo3.c foo3b.c) target_link_libraries(case2Foo1 case2Foo2) target_link_libraries(case2Foo2 case2Foo3) target_link_libraries(case2Foo3 case2Foo1) @@ -18,3 +18,4 @@ add_executable(case2Zot zot.c) target_link_libraries(case2Zot case2Bar1) #set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_DEBUG_MODE 1) +#set(CMAKE_LINK_DEPENDS_DEBUG_MODE 1) diff --git a/Tests/Dependency/Case2/foo1.c b/Tests/Dependency/Case2/foo1.c index 0dbf4264a..5f1f8ac84 100644 --- a/Tests/Dependency/Case2/foo1.c +++ b/Tests/Dependency/Case2/foo1.c @@ -1,3 +1,2 @@ extern int foo2(void); int foo1(void) { return foo2(); } -int foo1_from_foo3(void) { return 0; } diff --git a/Tests/Dependency/Case2/foo1b.c b/Tests/Dependency/Case2/foo1b.c new file mode 100644 index 000000000..e2b6dc341 --- /dev/null +++ b/Tests/Dependency/Case2/foo1b.c @@ -0,0 +1,2 @@ +extern int foo2b(void); +int foo1b(void) { return foo2b(); } diff --git a/Tests/Dependency/Case2/foo2b.c b/Tests/Dependency/Case2/foo2b.c new file mode 100644 index 000000000..34d694411 --- /dev/null +++ b/Tests/Dependency/Case2/foo2b.c @@ -0,0 +1,2 @@ +extern int foo3b(void); +int foo2b(void) { return foo3b(); } diff --git a/Tests/Dependency/Case2/foo3.c b/Tests/Dependency/Case2/foo3.c index eb5bd0ffa..dacef6ae4 100644 --- a/Tests/Dependency/Case2/foo3.c +++ b/Tests/Dependency/Case2/foo3.c @@ -1,2 +1,2 @@ -extern int foo1_from_foo3(void); -int foo3(void) { return foo1_from_foo3(); } +extern int foo1b(void); +int foo3(void) { return foo1b(); } diff --git a/Tests/Dependency/Case2/foo3b.c b/Tests/Dependency/Case2/foo3b.c new file mode 100644 index 000000000..90ea2f11d --- /dev/null +++ b/Tests/Dependency/Case2/foo3b.c @@ -0,0 +1 @@ +int foo3b(void) { return 0; }