diff options
author | Brad King <brad.king@kitware.com> | 2020-07-13 11:52:45 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2020-07-13 11:53:01 (GMT) |
commit | 7160a2b9d9b20e2e264709a0ffa561f890b3f275 (patch) | |
tree | f943617798c2043b94514078bd02ae57f784f2b1 /Tests/RunCMake/alias_targets | |
parent | b71d2b1955ece1d9289f1111e3930064f22cf962 (diff) | |
parent | 7b0f6508a03d7045d7599068ce9409004df2dbb0 (diff) | |
download | CMake-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.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") |