2022-03-08 02:58:06 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2024-10-18 04:24:02 +00:00
|
|
|
index d81ac1d..9f97998 100644
|
2022-03-08 02:58:06 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2024-10-18 04:24:02 +00:00
|
|
|
@@ -149,6 +149,7 @@ if(ONNX_BUILD_TESTS)
|
|
|
|
set(googletest_STATIC_LIBRARIES GTest::gtest)
|
2022-03-08 02:58:06 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
+find_package(protobuf CONFIG REQUIRED)
|
|
|
|
if((ONNX_USE_LITE_PROTO AND TARGET protobuf::libprotobuf-lite) OR ((NOT ONNX_USE_LITE_PROTO) AND TARGET protobuf::libprotobuf))
|
|
|
|
# Sometimes we need to use protoc compiled for host architecture while linking
|
|
|
|
# libprotobuf against target architecture. See https://github.com/caffe2/caffe
|