Fix detection of protobuf with onnxruntime_PREFER_SYSTEM_LIB on Linux (#4230)

The CMake module is FindProtobuf.cmake [1]. Thus the name should be
capitalized so that protobuf can be found on case-sensitive file
systems.

[1] https://github.com/Kitware/CMake/blob/v3.17.3/Modules/FindProtobuf.cmake
This commit is contained in:
Chih-Hsuan Yen 2020-06-18 08:34:47 +08:00 committed by GitHub
parent 43deec2174
commit 5da849b414
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -377,7 +377,7 @@ list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/external)
if(onnxruntime_PREFER_SYSTEM_LIB)
set(protobuf_MODULE_COMPATIBLE ON)
find_package(protobuf)
find_package(Protobuf)
endif()