diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2020-07-11 14:59:50 (GMT) |
---|---|---|
committer | Marc Chevrier <marc.chevrier@gmail.com> | 2020-07-11 14:59:50 (GMT) |
commit | 7b0f6508a03d7045d7599068ce9409004df2dbb0 (patch) | |
tree | 1f0cead6eda2344796ef818e91b6c3b9d1639fa7 /Tests/RunCMake/alias_targets | |
parent | 6ab08c4e99469439900c1cdc02fd2452ab268a87 (diff) | |
download | CMake-7b0f6508a03d7045d7599068ce9409004df2dbb0.zip CMake-7b0f6508a03d7045d7599068ce9409004df2dbb0.tar.gz CMake-7b0f6508a03d7045d7599068ce9409004df2dbb0.tar.bz2 |
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.txt | 7 |
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") |