diff --git a/cmake/onnx.cmake b/cmake/onnx.cmake index 7a6d17f..03882b2 100644 --- a/cmake/onnx.cmake +++ b/cmake/onnx.cmake @@ -18,6 +18,8 @@ macro(configure_onnx) ) file(WRITE ${ONNX_CMAKELISTS} "${content}") endif() + set(ONNX_BUILD_MAIN_LIB ON) + add_compile_definitions(ONNX_BUILD_MAIN_LIB) set(ONNX_NAMESPACE ${DAQ_ONNX_NAMESPACE} CACHE STRING "onnx namespace") add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/onnx) # Since https://github.com/onnx/onnx/pull/1318 is merged, we don't need to set it manually