From d8624b5a42b5ffa4090f0bdd97f63d17dee9895a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Thu, 17 Jan 2019 16:39:53 +0100 Subject: [PATCH] CMake: enable WindowlessEglApplication for headless builds. Otherwise the build of magnum-gl-info fails with a linker error. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 619cb145d..3d7db4f30 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,7 +116,7 @@ cmake_dependent_option(TARGET_VK "Build libraries with Vulkan interoperability" cmake_dependent_option(WITH_AL_INFO "Build magnum-al-info utility" OFF "WITH_AUDIO" OFF) # EGL context and windowless EGL application, available everywhere -cmake_dependent_option(WITH_WINDOWLESSEGLAPPLICATION "Build WindowlessEglApplication library" OFF "NOT TARGET_GLES OR TARGET_DESKTOP_GLES OR NOT WITH_GL_INFO" ON) +cmake_dependent_option(WITH_WINDOWLESSEGLAPPLICATION "Build WindowlessEglApplication library" OFF "NOT TARGET_GLES OR TARGET_DESKTOP_GLES OR NOT WITH_GL_INFO;NOT TARGET_HEADLESS" ON) option(WITH_EGLCONTEXT "Build EglContext library" OFF) # Android-specific application libraries