Merge pull request #20350 from alalek:issue_20285

This commit is contained in:
Alexander Alekhin 2021-07-04 21:07:02 +00:00
commit f9d62fba7a

View File

@ -177,7 +177,13 @@ if(CV_GCC OR CV_CLANG)
endif() endif()
# We need pthread's # We need pthread's
if(UNIX AND NOT ANDROID AND NOT (APPLE AND CV_CLANG)) # TODO if((UNIX
AND NOT ANDROID
AND NOT (APPLE AND CV_CLANG)
AND NOT EMSCRIPTEN
)
OR (EMSCRIPTEN AND WITH_PTHREADS_PF) # https://github.com/opencv/opencv/issues/20285
)
add_extra_compiler_option(-pthread) add_extra_compiler_option(-pthread)
endif() endif()