From 1d41b88053a8eae8ea3698854ee06574836e83e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 12 Oct 2019 16:21:55 +0200 Subject: [PATCH] modules: don't use obsolete CMake features. --- modules/FindGLFW.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/FindGLFW.cmake b/modules/FindGLFW.cmake index c76147fe4..d4c497ca3 100644 --- a/modules/FindGLFW.cmake +++ b/modules/FindGLFW.cmake @@ -118,7 +118,7 @@ if(NOT TARGET GLFW::GLFW) # Work around BUGGY framework support on macOS # https://cmake.org/Bug/view.php?id=14105 - if(CORRADE_TARGET_APPLE AND ${GLFW_LIBRARY} MATCHES "\\.framework$") + if(CORRADE_TARGET_APPLE AND GLFW_LIBRARY MATCHES "\\.framework$") set_property(TARGET GLFW::GLFW PROPERTY IMPORTED_LOCATION ${GLFW_LIBRARY}/GLFW) else() set_property(TARGET GLFW::GLFW PROPERTY IMPORTED_LOCATION ${GLFW_LIBRARY})