From 5da849b414711451b934c83ea8d55d898cceb7bd Mon Sep 17 00:00:00 2001 From: Chih-Hsuan Yen Date: Thu, 18 Jun 2020 08:34:47 +0800 Subject: [PATCH] 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 --- cmake/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 41acc53fa0..1bad2f93a3 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -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()