mirror of https://github.com/bjornbytes/lovr.git
Fix wasm compilation issues;
This commit is contained in:
parent
5f8f8a540e
commit
8ab26fe436
|
@ -45,7 +45,7 @@ if(EMSCRIPTEN)
|
|||
"-s FORCE_FILESYSTEM=1 "
|
||||
"-s ALLOW_MEMORY_GROWTH=1 "
|
||||
"-s \"EXPORTED_FUNCTIONS=[ "
|
||||
"'_main','_lovrRun','_lovrQuit','_lovrDestroy',"
|
||||
"'_main','_lovrRun','_lovrQuit',"
|
||||
"'_mat4_identity','_mat4_invert','_mat4_multiply','_mat4_rotateQuat','_mat4_transform','_mat4_transformDirection','_mat4_translate',"
|
||||
"'_quat_fromMat4','_quat_getAngleAxis'"
|
||||
"]\" "
|
||||
|
@ -297,10 +297,12 @@ if (LOVR_ENABLE_HEADSET AND LOVR_USE_OCULUS AND LOVR_OCULUS_PATH)
|
|||
endif()
|
||||
|
||||
# pthreads
|
||||
if(NOT WIN32)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
set(LOVR_PTHREADS Threads::Threads)
|
||||
if(LOVR_ENABLE_THREAD)
|
||||
if(NOT WIN32 AND NOT EMSCRIPTEN)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_package(Threads REQUIRED)
|
||||
set(LOVR_PTHREADS Threads::Threads)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# LÖVR
|
||||
|
|
Loading…
Reference in New Issue