diff options
Diffstat (limited to 'Tests/RunCMake/alias_targets/duplicate-target.cmake')
-rw-r--r-- | Tests/RunCMake/alias_targets/duplicate-target.cmake | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Tests/RunCMake/alias_targets/duplicate-target.cmake b/Tests/RunCMake/alias_targets/duplicate-target.cmake new file mode 100644 index 0000000..f81921b --- /dev/null +++ b/Tests/RunCMake/alias_targets/duplicate-target.cmake @@ -0,0 +1,20 @@ + +add_library (foo1 INTERFACE) +add_library (foo2 INTERFACE) + +add_library (imp1 SHARED IMPORTED GLOBAL) +add_library (imp2 SHARED IMPORTED GLOBAL) + + +add_library (alias1 ALIAS foo1) +# same alias to different library +add_library (alias1 ALIAS foo2) +# same alias to different imported library +add_library (alias1 ALIAS imp1) + + +add_library (alias2 ALIAS imp1) +# same alias to different imported library +add_library (alias2 ALIAS imp2) +# same alias to different library +add_library (alias2 ALIAS foo1) |