瀏覽代碼

Set PLATFORM to Web by default when configuring web builds with emcmake

pull/4748/head
gilzoide 3 月之前
父節點
當前提交
682e78b4b3
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      CMakeOptions.txt

+ 4
- 0
CMakeOptions.txt 查看文件

@ -2,6 +2,10 @@
include(CMakeDependentOption) include(CMakeDependentOption)
include(EnumOption) 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(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?") enum_option(OPENGL_VERSION "OFF;4.3;3.3;2.1;1.1;ES 2.0;ES 3.0" "Force a specific OpenGL Version?")

Loading…
取消
儲存