fix using protobuf-lite on macos (#4850)
This commit is contained in:
@@ -105,12 +105,12 @@ else()
|
||||
if(TARGET libprotoc)
|
||||
list(APPEND _proto_libs libprotoc)
|
||||
endif()
|
||||
set_target_properties(${_proto_libs} PROPERTIES
|
||||
COMPILE_FLAGS "-Wno-unused-variable -Wno-inconsistent-missing-override")
|
||||
set_target_properties(${_proto_libs} PROPERTIES
|
||||
CXX_VISIBILITY_PRESET default
|
||||
C_VISIBILITY_PRESET default
|
||||
VISIBILITY_INLINES_HIDDEN OFF)
|
||||
set_target_properties(libprotobuf libprotobuf-lite PROPERTIES
|
||||
COMPILE_FLAGS "-Wno-unused-variable -Wno-inconsistent-missing-override")
|
||||
endif()
|
||||
if(NGRAPH_USE_PROTOBUF_LITE)
|
||||
# if only libprotobuf-lite is used, both libprotobuf and libprotobuf-lite are built
|
||||
|
||||
Reference in New Issue
Block a user