mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-06-29 03:30:52 +00:00
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:
parent
43deec2174
commit
5da849b414
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue