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:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user