summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
diff options
context:
space:
mode:
authorRobert Maynard <rmaynard@nvidia.com>2021-07-12 17:26:36 (GMT)
committerBrad King <brad.king@kitware.com>2021-07-19 16:55:18 (GMT)
commitaa3ab3eb925a601e3acd2d9f569fc3183fab2f8b (patch)
tree2c373c1699c38a2b4383f73af7cc843b52f25308 /Tests/RunCMake/find_library/FromScriptMode-stderr.txt
parenta42b753c419136e3593042c62129bcaa36b50146 (diff)
downloadCMake-aa3ab3eb925a601e3acd2d9f569fc3183fab2f8b.zip
CMake-aa3ab3eb925a601e3acd2d9f569fc3183fab2f8b.tar.gz
CMake-aa3ab3eb925a601e3acd2d9f569fc3183fab2f8b.tar.bz2
find_library: Infer library prefix and suffix when in script mode
This aligns `find_library` with the documentation that states it can be called from script mode. This is done by infering the proper prefix and suffix values when `find_library` is called when the `CMAKE_FIND_LIBRARY*` are not set. This also means that `find_library` won't produce obscure error messages about unset definitions. Fixes: #22027
Diffstat (limited to 'Tests/RunCMake/find_library/FromScriptMode-stderr.txt')
-rw-r--r--Tests/RunCMake/find_library/FromScriptMode-stderr.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/find_library/FromScriptMode-stderr.txt b/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
new file mode 100644
index 0000000..046f680
--- /dev/null
+++ b/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
@@ -0,0 +1,4 @@
+.*find_library considered the following locations.*
+.*\(lib\)library_no_exist\(\\.so\|\\.a\).*
+.*The item was found at.*
+.*lib/libcreated.a.*