]> source.dussan.org Git - tigervnc.git/commitdiff
Fix static library check regexp
authorPierre Ossman <ossman@cendio.se>
Wed, 16 Nov 2022 06:48:31 +0000 (07:48 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 10 Jan 2023 18:41:13 +0000 (19:41 +0100)
Not sure how the old one ever worked as it incorrectly just tried to
match last character and nothing else.

cmake/Modules/CMakeMacroLibtoolFile.cmake

index be336d5130db170d97870462738399595213f3c6..4a50892554bfed064a951ae061cd76d2509a6d84 100644 (file)
@@ -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