summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake')
-rw-r--r--Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake13
1 files changed, 13 insertions, 0 deletions
diff --git a/Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake b/Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake
new file mode 100644
index 0000000..03223e8
--- /dev/null
+++ b/Tests/RunCMake/CMP0022/CMP0022-WARN-tll.cmake
@@ -0,0 +1,13 @@
+
+project(CMP0022-WARN-tll)
+
+add_library(foo SHARED empty_vs6_1.cpp)
+add_library(bar SHARED empty_vs6_2.cpp)
+add_library(bat SHARED empty_vs6_3.cpp)
+target_link_libraries(bar LINK_PUBLIC foo)
+# Replace the compatibility values set by target_link_libraries
+set_property(TARGET bar PROPERTY LINK_INTERFACE_LIBRARIES bat)
+set_property(TARGET bar PROPERTY LINK_INTERFACE_LIBRARIES_DEBUG bat)
+
+add_library(user SHARED empty.cpp)
+target_link_libraries(user bar)