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

Merge pull request #20903 from alalek:samples_fix_nothreads_build

This commit is contained in:
Alexander Alekhin
2021-10-21 13:04:01 +00:00
3 changed files with 24 additions and 6 deletions
+1
View File
@@ -118,6 +118,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()