diff options
author | Brad King <brad.king@kitware.com> | 2008-02-07 21:14:17 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-02-07 21:14:17 (GMT) |
commit | bdb628145a2bd355a7253c8aba049752ee3f0a6e (patch) | |
tree | 55b480c91c3455ec2959b086348d5d4a0552b732 /Tests/Dependency | |
parent | 4987e17f46cb2542106ee2d9afe2752ef78d0f1f (diff) | |
download | CMake-bdb628145a2bd355a7253c8aba049752ee3f0a6e.zip CMake-bdb628145a2bd355a7253c8aba049752ee3f0a6e.tar.gz CMake-bdb628145a2bd355a7253c8aba049752ee3f0a6e.tar.bz2 |
ENH: Make Dependency test Case2 require two traversals of a static library loop.
Diffstat (limited to 'Tests/Dependency')
-rw-r--r-- | Tests/Dependency/Case2/CMakeLists.txt | 7 | ||||
-rw-r--r-- | Tests/Dependency/Case2/foo1.c | 1 | ||||
-rw-r--r-- | Tests/Dependency/Case2/foo1b.c | 2 | ||||
-rw-r--r-- | Tests/Dependency/Case2/foo2b.c | 2 | ||||
-rw-r--r-- | Tests/Dependency/Case2/foo3.c | 4 | ||||
-rw-r--r-- | Tests/Dependency/Case2/foo3b.c | 1 |
6 files changed, 11 insertions, 6 deletions
diff --git a/Tests/Dependency/Case2/CMakeLists.txt b/Tests/Dependency/Case2/CMakeLists.txt index 764338e..18100cd 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 0dbf426..5f1f8ac 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 0000000..e2b6dc3 --- /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 0000000..34d6944 --- /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 eb5bd0f..dacef6a 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 0000000..90ea2f1 --- /dev/null +++ b/Tests/Dependency/Case2/foo3b.c @@ -0,0 +1 @@ +int foo3b(void) { return 0; } |