From d25c04808f50ecf8f374113c627204511801bcac Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Wed, 16 Nov 2022 07:48:31 +0100 Subject: 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. --- cmake/Modules/CMakeMacroLibtoolFile.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmake/Modules') 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 -- cgit v1.2.3