summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/alias_targets
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-07-13 11:52:45 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-07-13 11:53:01 (GMT)
commit7160a2b9d9b20e2e264709a0ffa561f890b3f275 (patch)
treef943617798c2043b94514078bd02ae57f784f2b1 /Tests/RunCMake/alias_targets
parentb71d2b1955ece1d9289f1111e3930064f22cf962 (diff)
parent7b0f6508a03d7045d7599068ce9409004df2dbb0 (diff)
downloadCMake-7160a2b9d9b20e2e264709a0ffa561f890b3f275.zip
CMake-7160a2b9d9b20e2e264709a0ffa561f890b3f275.tar.gz
CMake-7160a2b9d9b20e2e264709a0ffa561f890b3f275.tar.bz2
Merge topic 'imported-local-target-alias'
7b0f6508a0 ALIAS targets: Non-global aliases must be propagated to sub-directories Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !5002
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 bfd9840..b114b75 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")