1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-21 19:33:03 +04:00

samples: fix build without threading support

This commit is contained in:
Alexander Alekhin
2021-10-19 09:28:12 +00:00
parent 0e86e292e4
commit 6d5fdfbf73
3 changed files with 24 additions and 6 deletions
+1
View File
@@ -120,6 +120,7 @@ else()
find_package(Threads)
endif()
if((TARGET Threads::Threads OR HAVE_THREADS) AND NOT OPENCV_EXAMPLES_DISABLE_THREADS)
set(HAVE_THREADS 1)
add_definitions(-DHAVE_THREADS=1)
endif()