From 686648f120ab94a2a74fdf5906303e357be1e3d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Wed, 12 May 2021 19:28:08 +0200 Subject: [PATCH] Platform: suggest that bundled GLFW should have buncha things disabled. The so-far-perfect impression of GLFW being a heaven to integrate just got a bunch of tiny cracks. Good thing it's being fixed for the next version, although I'd personally disable the docs as well. --- src/Magnum/Platform/GlfwApplication.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Magnum/Platform/GlfwApplication.h b/src/Magnum/Platform/GlfwApplication.h index c8f45615b..07d7c9a93 100644 --- a/src/Magnum/Platform/GlfwApplication.h +++ b/src/Magnum/Platform/GlfwApplication.h @@ -116,6 +116,10 @@ the first part and point `CMAKE_PREFIX_PATH` to its installation dir if necessary. @code{.cmake} +set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE) +# These two will be off-by-default when GLFW 3.4 gets released +set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE) +set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "" FORCE) add_subdirectory(glfw EXCLUDE_FROM_ALL) set(WITH_GLFWAPPLICATION ON CACHE BOOL "" FORCE)