summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/target_link_libraries
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-12-16 17:19:25 (GMT)
committerBrad King <brad.king@kitware.com>2021-12-16 17:45:27 (GMT)
commita97c92e46eff516eb4642776dcf85bd646e63763 (patch)
tree8bcbbd1e7c084ef8b8b0e4e5d1c05e9f47c80396 /Tests/RunCMake/target_link_libraries
parent0dcbf4ab588fc80a8b51d91de5c5518b13224c76 (diff)
downloadCMake-a97c92e46eff516eb4642776dcf85bd646e63763.zip
CMake-a97c92e46eff516eb4642776dcf85bd646e63763.tar.gz
CMake-a97c92e46eff516eb4642776dcf85bd646e63763.tar.bz2
CMP0028: Report backtrace to link item rather than target creation
Now that we have proper backtraces for both `LINK_LIBRARIES` and `INTERFACE_LINK_LIBRARIES` entries, we can report them in error messages.
Diffstat (limited to 'Tests/RunCMake/target_link_libraries')
-rw-r--r--Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt2
-rw-r--r--Tests/RunCMake/target_link_libraries/ConfigCase-stderr.txt8
2 files changed, 5 insertions, 5 deletions
diff --git a/Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt b/Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt
index 9e38bec..644674f 100644
--- a/Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt
+++ b/Tests/RunCMake/target_link_libraries/CMP0079-link-NEW-bogus-stderr.txt
@@ -1,4 +1,4 @@
-^CMake Error at CMP0079-link-NEW-bogus.cmake:[0-9]+ \(add_executable\):
+^CMake Error at CMP0079-link-NEW-bogus\.cmake:6 \(set_property\):
Target "top" links to target "::@\(0xdeadbeef\)" but the target was not
found. Perhaps a find_package\(\) call is missing for an IMPORTED target, or
an ALIAS target is missing\?
diff --git a/Tests/RunCMake/target_link_libraries/ConfigCase-stderr.txt b/Tests/RunCMake/target_link_libraries/ConfigCase-stderr.txt
index 953c972..ea078b5 100644
--- a/Tests/RunCMake/target_link_libraries/ConfigCase-stderr.txt
+++ b/Tests/RunCMake/target_link_libraries/ConfigCase-stderr.txt
@@ -1,13 +1,13 @@
-^CMake Error at ConfigCase.cmake:[0-9]+ \(add_library\):
+^CMake Error at ConfigCase\.cmake:6 \(target_link_libraries\):
Target "impl" links to target "config::impl-Debug" but the target was not
found. Perhaps a find_package\(\) call is missing for an IMPORTED target, or
an ALIAS target is missing\?
Call Stack \(most recent call first\):
- CMakeLists.txt:[0-9]+ \(include\)
+ CMakeLists\.txt:[0-9]+ \(include\)
+
-CMake Error at ConfigCase.cmake:[0-9]+ \(add_library\):
+CMake Error at ConfigCase\.cmake:4 \(target_link_libraries\):
Target "impl" links to target "config::iface-Debug" but the target was not
found. Perhaps a find_package\(\) call is missing for an IMPORTED target, or
an ALIAS target is missing\?
Call Stack \(most recent call first\):
- CMakeLists.txt:[0-9]+ \(include\)
+ CMakeLists\.txt:[0-9]+ \(include\)