Skip to content

Commit 8ded6ba

Browse files
need to add Protocol buffer include directory for Windows build
1 parent 8eb07bf commit 8ded6ba

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

CM_dependencies.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ IF (DARKNET_TRY_ONNX)
310310
IF (Protobuf_FOUND)
311311
MESSAGE (STATUS "Found protocol buffer (needed for ONNX export) ${Protobuf_VERSION}")
312312
ADD_COMPILE_DEFINITIONS(DARKNET_HAS_PROTOBUF)
313+
INCLUDE_DIRECTORIES (${Protobuf_INCLUDE_DIRS})
313314
ELSE ()
314315
MESSAGE (WARNING "Protocol buffer not found. Skipping support for ONNX export.")
315316
ENDIF ()

0 commit comments

Comments
 (0)