summaryrefslogtreecommitdiff
path: root/Tests/RunCMake/alias_targets
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2020-07-11 16:59:50 +0200
committerMarc Chevrier <marc.chevrier@gmail.com>2020-07-11 16:59:50 +0200
commit7b0f6508a03d7045d7599068ce9409004df2dbb0 (patch)
tree1f0cead6eda2344796ef818e91b6c3b9d1639fa7 /Tests/RunCMake/alias_targets
parent6ab08c4e99469439900c1cdc02fd2452ab268a87 (diff)
downloadcmake-7b0f6508a03d7045d7599068ce9409004df2dbb0.tar.gz
ALIAS targets: Non-global aliases must be propagated to sub-directories
Fixes: #20942
Diffstat (limited to 'Tests/RunCMake/alias_targets')
-rw-r--r--Tests/RunCMake/alias_targets/get_property-subdir/CMakeLists.txt7
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/RunCMake/alias_targets/get_property-subdir/CMakeLists.txt b/Tests/RunCMake/alias_targets/get_property-subdir/CMakeLists.txt
index bfd9840139..b114b7544a 100644
--- a/Tests/RunCMake/alias_targets/get_property-subdir/CMakeLists.txt
+++ b/Tests/RunCMake/alias_targets/get_property-subdir/CMakeLists.txt
@@ -6,3 +6,10 @@ check_property (alias::import-local-subdir ALIASED_TARGET "import-local")
check_property (alias::import-local-subdir IMPORTED "TRUE")
check_property (alias::import-local-subdir ALIAS_GLOBAL "FALSE")
check_property (alias::import-local-subdir IMPORT_LOCAL_PROPERTY "IMPORT_LOCAL")
+
+
+# non-global alias defined in parent directory must be visible in sub-directory
+check_property (alias::import-local ALIASED_TARGET "import-local")
+check_property (alias::import-local IMPORTED "TRUE")
+check_property (alias::import-local ALIAS_GLOBAL "FALSE")
+check_property (alias::import-local IMPORT_LOCAL_PROPERTY "IMPORT_LOCAL")