summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-02-28 22:41:46 (GMT)
committerBrad King <brad.king@kitware.com>2023-02-28 23:07:36 (GMT)
commitb909be9e230af1767d7fdcb15a5266ab7c25fcfc (patch)
tree4acd8b2e42aedd6b245853ce17eba247acf9e4b1 /Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt
parent4a3e79048b6afd7eb86f72b1365028e6233c92b0 (diff)
downloadCMake-b909be9e230af1767d7fdcb15a5266ab7c25fcfc.zip
CMake-b909be9e230af1767d7fdcb15a5266ab7c25fcfc.tar.gz
CMake-b909be9e230af1767d7fdcb15a5266ab7c25fcfc.tar.bz2
target_sources: Fix backtrace on missing source
If a source file is not found, the error message reports a backtrace. Previously the backtrace pointed at where the target was created. In the case of `target_sources`, the missing source may have been named elsewhere. Fixes: #24538
Diffstat (limited to 'Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt')
-rw-r--r--Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt
index cea8c22..63a9341 100644
--- a/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt
+++ b/Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-stderr.txt
@@ -34,7 +34,7 @@ Generated_source6\.txt: # 2a # GENERATED = `0`
Generated_source6\.txt: # 2b # GENERATED = `0`
Generated_source6\.txt: # 3a # GENERATED = `0`
Generated_source6\.txt: # 3b # GENERATED = `0`
-CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_custom_target\):
+CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(target_sources\):
Cannot find source file:
[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.txt
@@ -42,7 +42,7 @@ Call Stack \(most recent call first\):
CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
+
-CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_custom_target\):
+CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(target_sources\):
Cannot find source file:
[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.txt
@@ -50,7 +50,7 @@ Call Stack \(most recent call first\):
CMP0118-OLD-Test9\.cmake:[0-9]+ \(include\)
CMakeLists\.txt:[0-9]+ \(include\)
+
-CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(add_custom_target\):
+CMake Error at CMP0118-Common-Test9\.cmake:[0-9]+ \(target_sources\):
Cannot find source file:
[ \t]*.*Tests/RunCMake/CMP0118/CMP0118-OLD-Test9-build/Generated_source[4-6]\.txt