Fix graphs-csv with wasm-multithreaded build

csv-parser didn't get the -pthread flag. Now, we add the -pthread flag if this is compiled with multithreaded wasm.

Fixes: QTBUG-139340
Pick-to: 6.10.0 6.10
Change-Id: I0f9cca453bb7f13b8e3e005be5c55aa586cd2c88
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Reviewed-by: Johanna Äijälä <johanna.aijala@qt.io>
This commit is contained in:
Sami Varanka 2025-09-11 12:59:00 +03:00
parent 139629b616
commit 44f6242058
1 changed files with 4 additions and 0 deletions

View File

@ -1 +1,5 @@
if (EMSCRIPTEN AND QT_FEATURE_thread)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
endif()
add_subdirectory(csv-parser)