mirror of
https://github.com/opencv/opencv.git
synced 2026-07-30 07:43:03 +04:00
Supressed tones of Wdeprecated-copy that jump out of GTes after XCode update to 13.1 on Mac M1.
This commit is contained in:
@@ -24,6 +24,12 @@ add_library(ade STATIC ${OPENCV_3RDPARTY_EXCLUDE_FROM_ALL}
|
||||
${ADE_include}
|
||||
${ADE_sources}
|
||||
)
|
||||
|
||||
# https://github.com/opencv/ade/issues/32
|
||||
if(CV_CLANG AND CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang" AND NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 13.1)
|
||||
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wdeprecated-copy)
|
||||
endif()
|
||||
|
||||
target_include_directories(ade PUBLIC $<BUILD_INTERFACE:${ADE_root}/include>)
|
||||
set_target_properties(ade PROPERTIES
|
||||
POSITION_INDEPENDENT_CODE True
|
||||
|
||||
Reference in New Issue
Block a user