summaryrefslogtreecommitdiffstats
path: root/Tests/Dependency/Case2/CMakeLists.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-09-01 14:38:03 (GMT)
committerBrad King <brad.king@kitware.com>2009-09-01 14:38:03 (GMT)
commit0cfd8c411ff450465ad2adfca43aaeb859eee643 (patch)
tree6e0900fed8ad30d8f31967625cfa7e77bc4da399 /Tests/Dependency/Case2/CMakeLists.txt
parent69251f75492a9bd1e3122e8e7ae7888e9c700a57 (diff)
downloadCMake-0cfd8c411ff450465ad2adfca43aaeb859eee643.zip
CMake-0cfd8c411ff450465ad2adfca43aaeb859eee643.tar.gz
CMake-0cfd8c411ff450465ad2adfca43aaeb859eee643.tar.bz2
Test link multiplicity
This tests the LINK_INTERFACE_MULTIPLICITY property for a cycle of three static libraries that must be scanned three times to link properly.
Diffstat (limited to 'Tests/Dependency/Case2/CMakeLists.txt')
-rw-r--r--Tests/Dependency/Case2/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/Tests/Dependency/Case2/CMakeLists.txt b/Tests/Dependency/Case2/CMakeLists.txt
index 18100cd..21caaad 100644
--- a/Tests/Dependency/Case2/CMakeLists.txt
+++ b/Tests/Dependency/Case2/CMakeLists.txt
@@ -1,11 +1,12 @@
project(CASE2 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)
+add_library(case2Foo1 STATIC foo1.c foo1b.c foo1c.c)
+add_library(case2Foo2 STATIC foo2.c foo2b.c foo2c.c)
+add_library(case2Foo3 STATIC foo3.c foo3b.c foo3c.c)
target_link_libraries(case2Foo1 case2Foo2)
target_link_libraries(case2Foo2 case2Foo3)
target_link_libraries(case2Foo3 case2Foo1)
+set_property(TARGET case2Foo1 PROPERTY LINK_INTERFACE_MULTIPLICITY 3)
add_library(case2Bar1 STATIC bar1.c)
add_library(case2Bar2 STATIC bar2.c)