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