diff options
author | Brad King <brad.king@kitware.com> | 2021-12-22 13:51:57 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2021-12-22 13:52:13 (GMT) |
commit | 217f363cac32c59ee05ccc4856396a099150475b (patch) | |
tree | afa9c6c9d5f6785b938040515a883f412a0b7b07 /Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt | |
parent | 68b0c62a72a4d3352ed909c208400d02e65a4b61 (diff) | |
parent | 37af6c33116af75a9538861268edab0ddc202d79 (diff) | |
download | CMake-217f363cac32c59ee05ccc4856396a099150475b.zip CMake-217f363cac32c59ee05ccc4856396a099150475b.tar.gz CMake-217f363cac32c59ee05ccc4856396a099150475b.tar.bz2 |
Merge topic 'link-only-targets'
37af6c3311 target_link_libraries: Optionally require only target names
5134f099a3 cmGeneratorTarget: Factor out message about reasons for a missing target
37a25072ea Tests: Rename RunCMake.{CMP0028 => LinkItemValidation}
Acked-by: Kitware Robot <kwrobot@kitware.com>
Tested-by: buildbot <buildbot@kitware.com>
Merge-request: !6821
Diffstat (limited to 'Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt')
-rw-r--r-- | Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt b/Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt new file mode 100644 index 0000000..bbb0170 --- /dev/null +++ b/Tests/RunCMake/LinkItemValidation/OnlyTargets-stderr.txt @@ -0,0 +1,40 @@ +^CMake Error at OnlyTargets\.cmake:11 \(target_link_libraries\): + Target "exe" has LINK_LIBRARIES_ONLY_TARGETS enabled, but it links to: + + non_target_in_exe + + which is not a target\. Possible reasons include: +( + \*[^ +]+)* + +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at OnlyTargets\.cmake:21 \(target_link_libraries\): + Target "iface" has LINK_LIBRARIES_ONLY_TARGETS enabled, but its link + interface contains: + + non_target_in_iface + + which is not a target\. Possible reasons include: +( + \*[^ +]+)* + +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) ++ +CMake Error at OnlyTargets\.cmake:30 \(target_link_libraries\): + Target "iface_imported_checked" has LINK_LIBRARIES_ONLY_TARGETS enabled, + but its link interface contains: + + non_target_in_iface_imported_checked + + which is not a target\. Possible reasons include: +( + \*[^ +]+)* + +Call Stack \(most recent call first\): + CMakeLists\.txt:[0-9]+ \(include\) |