diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-30 09:45:53 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-05-30 09:47:39 (GMT) |
commit | 9436ad35df17df89e1a74f91103b04baad085127 (patch) | |
tree | 03dd545967151a213153304db2bafcdb3ce3987c /Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake | |
parent | 67dd68765700bbd6a981700c04f45b28cdc85587 (diff) | |
download | CMake-9436ad35df17df89e1a74f91103b04baad085127.zip CMake-9436ad35df17df89e1a74f91103b04baad085127.tar.gz CMake-9436ad35df17df89e1a74f91103b04baad085127.tar.bz2 |
target_link_libraries: self-link through ALIAS is an error
Fixes: #19617
Diffstat (limited to 'Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake')
-rw-r--r-- | Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake b/Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake new file mode 100644 index 0000000..07a3490 --- /dev/null +++ b/Tests/RunCMake/target_link_libraries/CMP0108-self-link.cmake @@ -0,0 +1,9 @@ + +cmake_policy (SET CMP0038 NEW) +cmake_policy (SET CMP0042 NEW) + +enable_language(C) + +add_library(foo SHARED lib.c) +add_library(Bar::foo ALIAS foo) +target_link_libraries(foo PRIVATE Bar::foo) |