ENH: Add test of preservation of static libraries on original link lines.
This commit is contained in:
parent
85c983885b
commit
464a6cbf34
@ -51,3 +51,4 @@ ADD_SUBDIRECTORY(Exec4)
|
|||||||
# projects.
|
# projects.
|
||||||
ADD_SUBDIRECTORY(Case1)
|
ADD_SUBDIRECTORY(Case1)
|
||||||
ADD_SUBDIRECTORY(Case2)
|
ADD_SUBDIRECTORY(Case2)
|
||||||
|
ADD_SUBDIRECTORY(Case3)
|
||||||
|
10
Tests/Dependency/Case3/CMakeLists.txt
Normal file
10
Tests/Dependency/Case3/CMakeLists.txt
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
project(CASE3 C)
|
||||||
|
|
||||||
|
add_library(case3Foo1 STATIC foo1.c foo1b.c)
|
||||||
|
add_library(case3Foo2 STATIC foo2.c)
|
||||||
|
|
||||||
|
add_executable(case3Bar bar.c)
|
||||||
|
target_link_libraries(case3Bar case3Foo1 case3Foo2 case3Foo1)
|
||||||
|
|
||||||
|
#set_property(GLOBAL PROPERTY GLOBAL_DEPENDS_DEBUG_MODE 1)
|
||||||
|
#set(CMAKE_LINK_DEPENDS_DEBUG_MODE 1)
|
5
Tests/Dependency/Case3/bar.c
Normal file
5
Tests/Dependency/Case3/bar.c
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
extern int foo1(void);
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
return foo1();
|
||||||
|
}
|
2
Tests/Dependency/Case3/foo1.c
Normal file
2
Tests/Dependency/Case3/foo1.c
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
extern int foo2(void);
|
||||||
|
int foo1(void) { return foo2(); }
|
1
Tests/Dependency/Case3/foo1b.c
Normal file
1
Tests/Dependency/Case3/foo1b.c
Normal file
@ -0,0 +1 @@
|
|||||||
|
int foo1b(void) { return 0; }
|
2
Tests/Dependency/Case3/foo2.c
Normal file
2
Tests/Dependency/Case3/foo2.c
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
extern int foo1b(void);
|
||||||
|
int foo2(void) { return foo1b(); }
|
Loading…
x
Reference in New Issue
Block a user