Skip to content

Commit dcffe3f

Browse files
committed
Fix build on wasm
1 parent 6a539ae commit dcffe3f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
1111

1212
option(SCRATCHCPPRENDER_BUILD_UNIT_TESTS "Build unit tests" ON)
1313

14+
if(EMSCRIPTEN)
15+
set(CMAKE_C_FLAGS "-pthread")
16+
set(CMAKE_CXX_FLAGS "-pthread")
17+
endif()
18+
1419
include(build/FindQt.cmake)
1520

1621
qt_standard_project_setup(REQUIRES 6.6)

0 commit comments

Comments
 (0)