diff options
author | Brad King <brad.king@kitware.com> | 2018-05-11 13:17:05 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-05-11 13:18:08 (GMT) |
commit | 1e521a1a91291b4ac6400c7f37345fcdb423d793 (patch) | |
tree | 8e12f38afefd1030643218fc4366937584247cbc /Tests | |
parent | c747d4ccb349f87963a8d1da69394bc4db6b74ed (diff) | |
parent | e567d7eb639b43c2256340acdf4b0053dec0018a (diff) | |
download | CMake-1e521a1a91291b4ac6400c7f37345fcdb423d793.zip CMake-1e521a1a91291b4ac6400c7f37345fcdb423d793.tar.gz CMake-1e521a1a91291b4ac6400c7f37345fcdb423d793.tar.bz2 |
Merge topic 'restore-imported-lib-alias-diagnostic'
e567d7eb63 add_library: Restore error on alias of non-global imported target
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2058
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/RunCMake/alias_targets/imported-target-stderr.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Tests/RunCMake/alias_targets/imported-target-stderr.txt b/Tests/RunCMake/alias_targets/imported-target-stderr.txt index 12ffbc2..465de03 100644 --- a/Tests/RunCMake/alias_targets/imported-target-stderr.txt +++ b/Tests/RunCMake/alias_targets/imported-target-stderr.txt @@ -3,7 +3,13 @@ \"test-exe\" is imported but not globally visible. Call Stack \(most recent call first\): CMakeLists.txt:[0-9]+ \(include\) - - ++ 'alias-test-exe' does not exist![?] +* +CMake Error at imported-target.cmake:[0-9]+ \(add_library\): + add_library cannot create ALIAS target "alias-test-lib" because target + "test-lib" is imported but not globally visible. +Call Stack \(most recent call first\): + CMakeLists.txt:[0-9]+ \(include\) ++ 'alias-test-lib' does not exist![?]$ |