OPENCV_DISABLE_THREAD_SUPPORT.cmake 804 B

12345678910111213141516171819202122232425262728
  1. # Force removal of code conditionally compiled with `#if
  2. # HAVE_PTHREAD`.
  3. ocv_update(HAVE_PTHREAD 0)
  4. # There components are disabled because they require
  5. # multi-threaded execution.
  6. ocv_update(WITH_PROTOBUF OFF)
  7. ocv_update(WITH_GSTREAMER OFF)
  8. ocv_update(WITH_IPP OFF)
  9. ocv_update(WITH_ITT OFF)
  10. ocv_update(WITH_OPENCL OFF)
  11. ocv_update(WITH_VA OFF)
  12. ocv_update(WITH_VA_INTEL OFF)
  13. # Disable bindings
  14. ocv_update(BUILD_opencv_python2 OFF)
  15. ocv_update(BUILD_opencv_python3 OFF)
  16. ocv_update(BUILD_JAVA OFF)
  17. ocv_update(BUILD_opencv_java OFF)
  18. # These modules require `#include
  19. # <[thread|mutex|condition_variable|future]>` and linkage into
  20. # `libpthread` to work.
  21. ocv_update(BUILD_opencv_objdetect OFF)
  22. ocv_update(BUILD_opencv_gapi OFF)
  23. ocv_update(BUILD_opencv_dnn OFF)
  24. set(OPJ_USE_THREAD "OFF" CACHE INTERNAL "")