diff options
Diffstat (limited to 'Tests/RunCMake/alias_targets/imported-target.cmake')
-rw-r--r-- | Tests/RunCMake/alias_targets/imported-target.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/RunCMake/alias_targets/imported-target.cmake b/Tests/RunCMake/alias_targets/imported-target.cmake index bb682fe..fa6f8d3 100644 --- a/Tests/RunCMake/alias_targets/imported-target.cmake +++ b/Tests/RunCMake/alias_targets/imported-target.cmake @@ -44,3 +44,14 @@ if(TARGET alias-test-lib) else() message("'alias-test-lib' does not exist!?") endif() + +add_subdirectory (imported-target-subdir1) +add_subdirectory (imported-target-subdir2) + +foreach (alias IN ITEMS exe-local lib-local + exe-subdir1 lib-subdir1 + exe-subdir2 lib-subdir2) + if (TARGET alias-test-${alias}) + message (SEND_ERROR "ALIAS 'alias-test-${alias}' unexpectedly defined.") + endif() +endforeach() |