From 35c3f7d05d57d7b0664796f743ac443bdaf47d62 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Mon, 4 Jul 2016 09:13:04 +0200 Subject: [PATCH] Platform: link magnum-info to WindowlessEglApplication in EGL Linux builds. --- src/Magnum/Platform/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Platform/CMakeLists.txt b/src/Magnum/Platform/CMakeLists.txt index 6f03b14de..142a2d4b7 100644 --- a/src/Magnum/Platform/CMakeLists.txt +++ b/src/Magnum/Platform/CMakeLists.txt @@ -744,7 +744,11 @@ if(WITH_MAGNUMINFO) elseif(CORRADE_TARGET_NACL) target_link_libraries(magnum-info MagnumWindowlessNaClApplication) elseif(CORRADE_TARGET_UNIX) - target_link_libraries(magnum-info MagnumWindowlessGlxApplication) + if(MAGNUM_TARGET_GLES AND NOT MAGNUM_TARGET_DESKTOP_GLES) + target_link_libraries(magnum-info MagnumWindowlessEglApplication) + else() + target_link_libraries(magnum-info MagnumWindowlessGlxApplication) + endif() elseif(CORRADE_TARGET_WINDOWS) if(NOT MAGNUM_TARGET_GLES OR MAGNUM_TARGET_DESKTOP_GLES) target_link_libraries(magnum-info MagnumWindowlessWglApplication)