diff --git a/LvglApplication/CMakeLists.txt b/LvglApplication/CMakeLists.txt index 8c66e85..413ca21 100644 --- a/LvglApplication/CMakeLists.txt +++ b/LvglApplication/CMakeLists.txt @@ -5,6 +5,7 @@ project(LvglApplication) find_package(SDL2 REQUIRED) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2 -s USE_SDL=2") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -O2 -s USE_SDL=2") # 使用这个可以帮助查看如何使用和集成wasm set(CMAKE_EXECUTABLE_SUFFIX ".html")