aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/Modules
diff options
context:
space:
mode:
authorPierre Ossman <ossman@cendio.se>2022-11-16 07:48:31 +0100
committerPierre Ossman <ossman@cendio.se>2023-01-10 19:41:13 +0100
commitd25c04808f50ecf8f374113c627204511801bcac (patch)
treeee25dccff51262d8193cd47ed4651188384a40e4 /cmake/Modules
parent533bf22864966e5b9a080ee3384625b062705e6a (diff)
downloadtigervnc-d25c04808f50ecf8f374113c627204511801bcac.tar.gz
tigervnc-d25c04808f50ecf8f374113c627204511801bcac.zip
Fix static library check regexp
Not sure how the old one ever worked as it incorrectly just tried to match last character and nothing else.
Diffstat (limited to 'cmake/Modules')
-rw-r--r--cmake/Modules/CMakeMacroLibtoolFile.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/Modules/CMakeMacroLibtoolFile.cmake b/cmake/Modules/CMakeMacroLibtoolFile.cmake
index be336d51..4a508925 100644
--- a/cmake/Modules/CMakeMacroLibtoolFile.cmake
+++ b/cmake/Modules/CMakeMacroLibtoolFile.cmake
@@ -32,7 +32,7 @@ macro(libtool_create_control_file _target)
foreach(library ${target_libs})
# Assume all entries are shared libs if platform-specific static library
# extension is not matched.
- if("${library}" MATCHES "[^.+\\${CMAKE_STATIC_LIBRARY_SUFFIX}]$")
+ if(NOT "${library}" MATCHES ".+\\${CMAKE_STATIC_LIBRARY_SUFFIX}$")
if("${library}" MATCHES ".+\\${CMAKE_SHARED_LIBRARY_SUFFIX}$")
# Shared library extension matched, so extract the path and library
# name, then add the result to the libtool dependency libs. This