diff options
author | anderspapitto <anderspapitto@gmail.com> | 2018-05-04 11:35:15 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-04 11:35:15 -0700 |
commit | 026cb9d2f162a66e1aaa8f4f0f4f7ef07c2ef1f3 (patch) | |
tree | b9c22a7a66fa0668bb780d7d56bcfaf04fbca4c9 /cmake | |
parent | a015d579ddce90831bb945bbefdd1aa1a3633f63 (diff) | |
download | pytorch-026cb9d2f162a66e1aaa8f4f0f4f7ef07c2ef1f3.tar.gz pytorch-026cb9d2f162a66e1aaa8f4f0f4f7ef07c2ef1f3.tar.bz2 pytorch-026cb9d2f162a66e1aaa8f4f0f4f7ef07c2ef1f3.zip |
set ONNX_NO_WERROR (#7296)
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/Dependencies.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake index bf292f8d4d..9b8f113b19 100644 --- a/cmake/Dependencies.cmake +++ b/cmake/Dependencies.cmake @@ -599,6 +599,7 @@ set(TEMP_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) # We will build onnx as static libs and embed it directly into the binary. set(BUILD_SHARED_LIBS OFF) set(ONNX_USE_MSVC_STATIC_RUNTIME ${CAFFE2_USE_MSVC_STATIC_RUNTIME}) +set(ONNX_NO_WERROR ON) add_subdirectory(${PROJECT_SOURCE_DIR}/third_party/onnx) include_directories(${ONNX_INCLUDE_DIRS}) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DONNX_NAMESPACE=${ONNX_NAMESPACE}") |