Skip to content

Commit a6e83c7

Browse files
committed
Fix support for newer protobuf
1 parent 2a68031 commit a6e83c7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,10 @@ find_package(FairCMakeModules 1.0.0 REQUIRED QUIET)
6868
include(FairFindPackage2) # for find_package2
6969

7070
if(BUILD_GRPC_CLIENT OR BUILD_GRPC_SERVER)
71-
find_package2(PRIVATE Protobuf VERSION 3.15 REQUIRED)
71+
find_package2(PRIVATE Protobuf CONFIG)
72+
if(NOT Protobuf_FOUND)
73+
find_package2(PRIVATE Protobuf REQUIRED)
74+
endif()
7275
find_package2(PRIVATE gRPC VERSION 1.1 REQUIRED)
7376
endif()
7477
find_package2(PRIVATE DDS VERSION 3.12 REQUIRED)

0 commit comments

Comments
 (0)