ENH: Make Dependency test Case2 require two traversals of a static library loop.
This commit is contained in:
parent
4987e17f46
commit
bdb628145a
|
@ -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)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
extern int foo2(void);
|
||||
int foo1(void) { return foo2(); }
|
||||
int foo1_from_foo3(void) { return 0; }
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
extern int foo2b(void);
|
||||
int foo1b(void) { return foo2b(); }
|
|
@ -0,0 +1,2 @@
|
|||
extern int foo3b(void);
|
||||
int foo2b(void) { return foo3b(); }
|
|
@ -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(); }
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
int foo3b(void) { return 0; }
|
Loading…
Reference in New Issue