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 authored and thewtex committed Feb 10, 2023
1 parent e9a1742 commit c7fea3e
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 @@ -344,6 +344,7 @@ endforeach()
-DCMAKE_INSTALL_LIBDIR:PATH=${CMAKE_INSTALL_LIBDIR}
-DCMAKE_INSTALL_BINDIR:PATH=${CMAKE_INSTALL_BINDIR}
-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 c7fea3e

Please sign in to comment.