Skip to content

Commit

Permalink
use cmake_dependent_option for platform specific option
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Feb 5, 2023
1 parent 199f2fe commit 51d6e57
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 51d6e57

Please sign in to comment.