handle custom platform
This commit is contained in:
parent
0748dc2d1e
commit
30ccc969de
1 changed files with 3514 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ endif()
|
|||
# This helps support the case where emsdk toolchain file is used
|
||||
# either by setting it with -DCMAKE_TOOLCHAIN_FILE=<path_to_emsdk>/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake
|
||||
# or by using "emcmake cmake -B build -S ." as described in https://emscripten.org/docs/compiling/Building-Projects.html
|
||||
if(EMSCRIPTEN)
|
||||
if(EMSCRIPTEN AND NOT ${PLATFORM} MATCHES "Custom")
|
||||
SET(PLATFORM Web CACHE STRING "Forcing PLATFORM_WEB because EMSCRIPTEN was detected")
|
||||
endif()
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue