Merge pull request #19985 from fpetrogalli:disable_threads
authorFrancesco Petrogalli <25690309+fpetrogalli@users.noreply.github.com>
Thu, 8 Jul 2021 20:21:21 +0000 (21:21 +0100)
committerGitHub <noreply@github.com>
Thu, 8 Jul 2021 20:21:21 +0000 (20:21 +0000)
commitb928ebdd53b3db10864ff675461c44f04eef3e8c
tree50255360feb6a983df51ff68345d8d7678aea277
parent59ae0e0013d85bf4a6d064e7c258c00e56858b35
Merge pull request #19985 from fpetrogalli:disable_threads

* [build][option] Introduce `OPENCV_DISABLE_THREAD_SUPPORT` option.

The option forces the library to build without thread support.

* update handling of OPENCV_DISABLE_THREAD_SUPPORT

- reduce amount of #if conditions

* [to squash] cmake: apply mode vars in toolchains too

Co-authored-by: Alexander Alekhin <alexander.a.alekhin@gmail.com>
16 files changed:
3rdparty/libwebp/CMakeLists.txt
CMakeLists.txt
cmake/OpenCVCompilerOptions.cmake
cmake/OpenCVUtils.cmake
cmake/vars/EnableModeVars.cmake [new file with mode: 0644]
cmake/vars/OPENCV_DISABLE_THREAD_SUPPORT.cmake [new file with mode: 0644]
modules/core/CMakeLists.txt
modules/core/include/opencv2/core/utility.hpp
modules/core/src/async.cpp
modules/core/src/parallel.cpp
modules/core/src/system.cpp
modules/core/src/umatrix.cpp
modules/core/src/utils/logtagmanager.hpp
modules/core/test/test_async.cpp
modules/core/test/test_utils.cpp
modules/ts/CMakeLists.txt