diff --git a/CMakeLists.txt b/CMakeLists.txt index 201511d..48a18b6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -24,10 +24,12 @@ project(ImPlay VERSION "${SEM_VER}") set(CMAKE_CXX_STANDARD 20) -option(USE_MPV_WIN_BUILD "Use Prebuilt static mpv dll on Windows" ON) -option(USE_PATCHED_GLFW "Use patched GLFW to support additional features" OFF) -option(USE_XDG_PORTAL "Use xdg-desktop-portal for file dialogs on Linux" OFF) +include(CMakeDependentOption) + option(USE_OPENGL_ES2 "Compile with OpenGL ES 2.0 backend" OFF) +option(USE_PATCHED_GLFW "Use patched GLFW to support additional features" OFF) +cmake_dependent_option(USE_MPV_WIN_BUILD "Use Prebuilt static mpv dll on Windows" ON "WIN32" OFF) +cmake_dependent_option(USE_XDG_PORTAL "Use xdg-desktop-portal for file dialogs on Linux" OFF "UNIX;NOT APPLE" OFF) include(ExternalProject) if (${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.14.0")