Skip to content

Commit e80f4ce

Browse files
authored
Export protobuf symbols (onnx#7525)
### Motivation and Context This PR exports protobuf symbols to fix PyTorch build. Signed-off-by: cyy <cyyever@outlook.com>
1 parent 992dd36 commit e80f4ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ add_onnx_global_defines(onnx_proto)
417417

418418
add_library(onnx ${ONNX_SRCS} ${ONNX_PROTO_SRCS})
419419
add_dependencies(onnx onnx_proto)
420-
set_target_properties(onnx PROPERTIES CXX_VISIBILITY_PRESET hidden)
420+
set_source_files_properties(${ONNX_SRCS} PROPERTIES CXX_VISIBILITY_PRESET hidden)
421421
add_onnx_global_defines(onnx)
422422

423423
if(ONNX_BUILD_PYTHON)

0 commit comments

Comments
 (0)