[cmake-commits] king committed CMakeLists.txt 1.1 1.2 foo1.c 1.1 1.2 foo1b.c NONE 1.1 foo2b.c NONE 1.1 foo3.c 1.1 1.2 foo3b.c NONE 1.1

cmake-commits at cmake.org cmake-commits at cmake.org
Thu Feb 7 16:14:19 EST 2008


Update of /cvsroot/CMake/CMake/Tests/Dependency/Case2
In directory public:/mounts/ram/cvs-serv27703/Tests/Dependency/Case2

Modified Files:
	CMakeLists.txt foo1.c foo3.c 
Added Files:
	foo1b.c foo2b.c foo3b.c 
Log Message:
ENH: Make Dependency test Case2 require two traversals of a static library loop.


--- NEW FILE: foo3b.c ---
int foo3b(void) { return 0; }

Index: foo1.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Dependency/Case2/foo1.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- foo1.c	6 Feb 2008 19:52:12 -0000	1.1
+++ foo1.c	7 Feb 2008 21:14:17 -0000	1.2
@@ -1,3 +1,2 @@
 extern int foo2(void);
 int foo1(void) { return foo2(); }
-int foo1_from_foo3(void) { return 0; }

Index: CMakeLists.txt
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Dependency/Case2/CMakeLists.txt,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- CMakeLists.txt	6 Feb 2008 19:52:12 -0000	1.1
+++ CMakeLists.txt	7 Feb 2008 21:14:17 -0000	1.2
@@ -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 @@
 target_link_libraries(case2Zot case2Bar1)
 
 #set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_DEBUG_MODE 1)
+#set(CMAKE_LINK_DEPENDS_DEBUG_MODE 1)

Index: foo3.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/Dependency/Case2/foo3.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- foo3.c	6 Feb 2008 19:52:12 -0000	1.1
+++ foo3.c	7 Feb 2008 21:14:17 -0000	1.2
@@ -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(); }

--- NEW FILE: foo2b.c ---
extern int foo3b(void);
int foo2b(void) { return foo3b(); }

--- NEW FILE: foo1b.c ---
extern int foo2b(void);
int foo1b(void) { return foo2b(); }



More information about the Cmake-commits mailing list