Commit bdb62814 authored by Brad King's avatar Brad King
Browse files

ENH: Make Dependency test Case2 require two traversals of a static library loop.

parent 4987e17f
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)
extern int foo2(void);
int foo1(void) { return foo2(); }
int foo1_from_foo3(void) { return 0; }
extern int foo2b(void);
int foo1b(void) { return foo2b(); }
extern int foo3b(void);
int foo2b(void) { return foo3b(); }
extern int foo1_from_foo3(void);
int foo3(void) { return foo1_from_foo3(); }
extern int foo1b(void);
int foo3(void) { return foo1b(); }
int foo3b(void) { return 0; }
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment