From 07bf6f8c12f0cebbe654b1de77039ec0ec39c008 Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sun, 23 Oct 2022 18:45:40 -0600 Subject: [PATCH] Add option for enabling DRM --- CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 963cba01..6f43e6e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -77,9 +77,14 @@ sfml_set_option(SFML_BUILD_NETWORK TRUE BOOL "TRUE to build SFML's Network modul # add an option for building the API documentation sfml_set_option(SFML_BUILD_DOC FALSE BOOL "TRUE to generate the API documentation, FALSE to ignore it") -# add an option for choosing the OpenGL implementation if(SFML_BUILD_WINDOW) + # add an option for choosing the OpenGL implementation sfml_set_option(SFML_OPENGL_ES ${OPENGL_ES} BOOL "TRUE to use an OpenGL ES implementation, FALSE to use a desktop OpenGL implementation") + + # add an option for choosing whether to use the DRM windowing backend + if(SFML_OS_LINUX) + sfml_set_option(SFML_USE_DRM FALSE BOOL "TRUE to use DRM windowing backend") + endif() endif() # add an option for building the test suite