Merge pull request #20908 from alalek:4.x_drop_legacy

This commit is contained in:
Alexander Alekhin 2021-10-21 07:09:14 +00:00
commit 4176a0ade3

View File

@ -110,8 +110,6 @@ if(MSVC)
endif() endif()
endif() endif()
add_definitions(-DDISABLE_OPENCV_24_COMPATIBILITY=1) # Avoid C-like legacy API
if(OPENCV_EXAMPLES_DISABLE_THREADS) if(OPENCV_EXAMPLES_DISABLE_THREADS)
# nothing # nothing
elseif(MSVC OR APPLE) elseif(MSVC OR APPLE)