From c3b4dc2a4fcd596881d7815e0b5b075233572544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sat, 28 Nov 2020 14:21:11 +0100 Subject: [PATCH] CMake: expose WITH_GLFWAPPLICATION only on desktop. It's not ported to any mobile or web platform right now. --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 959563637..260b362dd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -155,9 +155,11 @@ endif() # Platform-independent (almost) application libraries if(NOT CORRADE_TARGET_ANDROID) - option(WITH_GLFWAPPLICATION "Build GlfwApplication library" OFF) option(WITH_SDL2APPLICATION "Build Sdl2Application library" OFF) endif() +if(NOT CORRADE_TARGET_ANDROID AND NOT CORRADE_TARGET_IOS AND NOT CORRADE_TARGET_EMSCRIPTEN) + option(WITH_GLFWAPPLICATION "Build GlfwApplication library" OFF) +endif() option(BUILD_DEPRECATED "Include deprecated API in the build" ON) if(BUILD_DEPRECATED)