Skip to content

Commit

Permalink
COMP: wasi doesn't support pthread
Browse files Browse the repository at this point in the history
Fix 'pthread.h not found' error by disabling
thread support on DCMTK. Set DCMTK_WITH_THREADS = OFF
to disable threads.

Refer to [1] for more details.

[1] WebAssembly/wasi-libc#209
  • Loading branch information
jadh4v committed Aug 12, 2022
1 parent dc3d205 commit 0d36ace
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Modules/ThirdParty/DCMTK/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,7 @@ endforeach()
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY:PATH=${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
-DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_INSTALL_PREFIX}
-DCMAKE_CXX_FLAGS:STRING=${DCMTK_CXX_FLAGS}
-DDCMTK_WITH_THREADS:BOOL=${DCMTK_WITH_THREADS}
${CHARSET_CONVERSION_ARGS}
DEPENDS ${JPEG_DEPENDENCY} ${PNG_DEPENDENCY} ${TIFF_DEPENDENCY} ${ICU_DEPENDENCY}
BUILD_BYPRODUCTS ${DCMTK_BYPRODUCTS}
Expand Down

0 comments on commit 0d36ace

Please sign in to comment.