diff --git a/modules/dnn_modern/CMakeLists.txt b/modules/dnn_modern/CMakeLists.txt index 0f77508f9..8d05e1612 100644 --- a/modules/dnn_modern/CMakeLists.txt +++ b/modules/dnn_modern/CMakeLists.txt @@ -93,6 +93,7 @@ else() endif() list(APPEND REQUIRED_LIBRARIES ${PROTOBUF_LIBRARIES}) +include_directories(SYSTEM ${PROTOBUF_INCLUDE_DIRS}) #### # Setup the compiler options