Skip to content

Commit

Permalink
Disable werror for binaries when bundled protobuf is used
Browse files Browse the repository at this point in the history
  • Loading branch information
daquexian committed May 23, 2019
1 parent 2cf973c commit faaf1d2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions binaries/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,25 @@ if (DNN_BUILD_BIN)
target_link_libraries(dnn_retrieve_result
dnnlibrary)

treat_warnings_as_errors(dnn_retrieve_result)
if ((NOT DNN_READ_ONNX) OR DNN_SYSTEM_PROTOBUF)
treat_warnings_as_errors(dnn_retrieve_result)
endif()

add_executable(dnn_benchmark
dnn_benchmark.cpp)
target_link_libraries(dnn_benchmark
dnnlibrary)

treat_warnings_as_errors(dnn_benchmark)
if ((NOT DNN_READ_ONNX) OR DNN_SYSTEM_PROTOBUF)
treat_warnings_as_errors(dnn_benchmark)
endif()

add_executable(ex_model_builder
ex_model_builder.cpp)
target_link_libraries(ex_model_builder
dnnlibrary)

treat_warnings_as_errors(ex_model_builder)
if ((NOT DNN_READ_ONNX) OR DNN_SYSTEM_PROTOBUF)
treat_warnings_as_errors(ex_model_builder)
endif()
endif()

0 comments on commit faaf1d2

Please sign in to comment.