Bladeren bron

[build][cmake] fix issue introduced by #5181 (#5198)

* fix web build issue with CMake introduced by #5181

* remove ASYNCIFY
pull/5202/head
JohnnyCena123 2 weken geleden
committed by GitHub
bovenliggende
commit
085391e788
Geen bekende sleutel gevonden voor deze handtekening in de database GPG sleutel-ID: B5690EEEBB952194
1 gewijzigde bestanden met toevoegingen van 8 en 0 verwijderingen
  1. +8
    -0
      src/CMakeLists.txt

+ 8
- 0
src/CMakeLists.txt Bestand weergeven

@ -68,6 +68,14 @@ else()
)
endif()
if (${PLATFORM} MATCHES "Web")
target_link_options(raylib PUBLIC "-sUSE_GLFW=3" -sEXPORTED_RUNTIME_METHODS=ccall)
if(${GRAPHICS} MATCHES "GRAPHICS_API_OPENGL_ES3")
target_link_options(raylib PUBLIC "-sMIN_WEBGL_VERSION=2")
target_link_options(raylib PUBLIC "-sMAX_WEBGL_VERSION=2")
endif()
endif()
set_target_properties(raylib PROPERTIES
PUBLIC_HEADER "${raylib_public_headers}"
VERSION ${PROJECT_VERSION}

Laden…
Annuleren
Opslaan