Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit b83910e

Browse files
jadh4vthewtex
authored andcommittedDec 22, 2022
COMP: wasi doesn't support pthread
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
1 parent 6cd380e commit b83910e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎Modules/ThirdParty/DCMTK/CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,7 @@ endforeach()
344344
-DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
345345
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
346346
-DCMAKE_CXX_FLAGS:STRING=${DCMTK_CXX_FLAGS}
347+
-DDCMTK_WITH_THREADS:BOOL=${DCMTK_WITH_THREADS}
347348
${CHARSET_CONVERSION_ARGS}
348349
DEPENDS ${JPEG_DEPENDENCY} ${PNG_DEPENDENCY} ${TIFF_DEPENDENCY} ${ICU_DEPENDENCY}
349350
BUILD_BYPRODUCTS ${DCMTK_BYPRODUCTS}

0 commit comments

Comments
 (0)
Please sign in to comment.