summaryrefslogtreecommitdiffstats
path: root/Tests/RunCMake/find_library
diff options
context:
space:
mode:
authorThomas Schenker <thomas.schenker@protonmail.com>2023-07-07 17:42:28 (GMT)
committerBrad King <brad.king@kitware.com>2023-07-13 13:48:35 (GMT)
commitf60e92126296c0d87130ea20b9d4680d51fca62d (patch)
tree26869eaa516b807d50b2ae94a58888837bd2b33a /Tests/RunCMake/find_library
parentb8b53db1b30d697980bbf361a3f2604e1ff8396b (diff)
downloadCMake-f60e92126296c0d87130ea20b9d4680d51fca62d.zip
CMake-f60e92126296c0d87130ea20b9d4680d51fca62d.tar.gz
CMake-f60e92126296c0d87130ea20b9d4680d51fca62d.tar.bz2
find_library: Improve regex readability in --debug-find output
If there is only one possible library prefix/suffix, omit the capture group around it in the debug output.
Diffstat (limited to 'Tests/RunCMake/find_library')
-rw-r--r--Tests/RunCMake/find_library/FromScriptMode-stderr-darwin.txt2
-rw-r--r--Tests/RunCMake/find_library/FromScriptMode-stderr.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/RunCMake/find_library/FromScriptMode-stderr-darwin.txt b/Tests/RunCMake/find_library/FromScriptMode-stderr-darwin.txt
index 185720b..b0bf460 100644
--- a/Tests/RunCMake/find_library/FromScriptMode-stderr-darwin.txt
+++ b/Tests/RunCMake/find_library/FromScriptMode-stderr-darwin.txt
@@ -1,4 +1,4 @@
.*find_library considered the following locations.*
-.*\(lib\)library_no_exist\(\\.tbd\|\\.dylib\|\\.so\|\\.a\).*
+.*liblibrary_no_exist\(\\.tbd\|\\.dylib\|\\.so\|\\.a\).*
.*The item was found at.*
.*lib/libcreated.a.*
diff --git a/Tests/RunCMake/find_library/FromScriptMode-stderr.txt b/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
index 046f680..6f25184 100644
--- a/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
+++ b/Tests/RunCMake/find_library/FromScriptMode-stderr.txt
@@ -1,4 +1,4 @@
.*find_library considered the following locations.*
-.*\(lib\)library_no_exist\(\\.so\|\\.a\).*
+.*liblibrary_no_exist\(\\.so\|\\.a\).*
.*The item was found at.*
.*lib/libcreated.a.*