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

warnings supression via ocv_warnings_disable

This commit is contained in:
vrooomy
2026-04-03 14:39:22 +05:30
parent e59506bbf5
commit 48b39616b8
+2
View File
@@ -186,6 +186,8 @@ if(WITH_ONNXRUNTIME)
if(HAVE_ONNX)
set(HAVE_ONNXRUNTIME 1 CACHE INTERNAL "ONNX Runtime availability")
# Suppress warnings from ONNX Runtime headers
ocv_warnings_disable(CMAKE_CXX_FLAGS -Wsuggest-override -Wsign-promo)
if(ONNXRUNTIME_PREFER_STATIC)
set(_ort_static_lib "")