Skip to content

Commit

Permalink
Add ONNX_BUILD_MAIN_LIB
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 22, 2019
1 parent 6a0cae1 commit d6a454d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/onnx.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6a454d

Please sign in to comment.