summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-05-11 13:17:05 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-05-11 13:18:08 (GMT)
commit1e521a1a91291b4ac6400c7f37345fcdb423d793 (patch)
tree8e12f38afefd1030643218fc4366937584247cbc /Tests
parentc747d4ccb349f87963a8d1da69394bc4db6b74ed (diff)
parente567d7eb639b43c2256340acdf4b0053dec0018a (diff)
downloadCMake-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.txt10
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![?]$