Skip to content

Commit

Permalink
Set PLATFORM to Web by default when configuring web builds with emcma…
Browse files Browse the repository at this point in the history
…ke (#4748)
  • Loading branch information
gilzoide authored Feb 2, 2025
1 parent 4f5a20a commit 5a254e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeOptions.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
include(CMakeDependentOption)
include(EnumOption)

if(EMSCRIPTEN)
# When configuring web builds with "emcmake cmake -B build -S .", set PLATFORM to Web by default
SET(PLATFORM Web CACHE STRING "Platform to build for.")
endif()
enum_option(PLATFORM "Desktop;Web;Android;Raspberry Pi;DRM;SDL" "Platform to build for.")

enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0" "Force a specific OpenGL Version?")
Expand Down

0 comments on commit 5a254e3

Please sign in to comment.