From: Pavel Sobolev Subject: [PATCH] Don't hide symbols in object files. Signed-off-by: Pavel Sobolev --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -443,7 +443,6 @@ add_library(onnx_object OBJECT ${ONNX_SRCS}) add_dependencies(onnx_object onnx_proto_object) target_include_directories(onnx_object PUBLIC $) -set_target_properties(onnx_object PROPERTIES CXX_VISIBILITY_PRESET hidden) set_target_properties(onnx_object PROPERTIES VISIBILITY_INLINES_HIDDEN ON) target_include_directories(onnx_object PUBLIC $) add_onnx_global_defines(onnx_object)