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