From 2c223c8dcba319dbaa85b07fab6716f11afec14f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 13 Apr 2016 16:19:06 +0200 Subject: [PATCH] modules: minor cleanup. --- modules/FindMagnum.cmake | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/FindMagnum.cmake b/modules/FindMagnum.cmake index b87a4e0da..67895a17c 100644 --- a/modules/FindMagnum.cmake +++ b/modules/FindMagnum.cmake @@ -530,10 +530,9 @@ foreach(_component ${Magnum_FIND_COMPONENTS}) INTERFACE_INCLUDE_DIRECTORIES ${X11_INCLUDE_DIR}) set_property(TARGET Magnum::${_component} APPEND PROPERTY INTERFACE_LINK_LIBRARIES ${X11_LIBRARIES}) - endif() # EGL context dependencies - if(_component STREQUAL EglContext) + elseif(_component STREQUAL EglContext) find_package(EGL) set_property(TARGET Magnum::${_component} APPEND PROPERTY INTERFACE_LINK_LIBRARIES EGL::EGL)