From 81a339a79e10a94b48cfdb5306b20370097dbd34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 5 Nov 2020 16:35:36 +0100 Subject: [PATCH] modules: use standard CMake APIs for detecting static libs. --- modules/FindSDL2.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindSDL2.cmake b/modules/FindSDL2.cmake index c7e352766..712b5e6dd 100644 --- a/modules/FindSDL2.cmake +++ b/modules/FindSDL2.cmake @@ -118,7 +118,7 @@ if(CORRADE_TARGET_WINDOWS) endif() # (Static) macOS / iOS dependencies -if(CORRADE_TARGET_APPLE AND SDL2_LIBRARY MATCHES ".*libSDL2.a$") +if(CORRADE_TARGET_APPLE AND SDL2_LIBRARY MATCHES "${CMAKE_STATIC_LIBRARY_SUFFIX}$") if(CORRADE_TARGET_IOS) set(_SDL2_FRAMEWORKS AudioToolbox