Skip to content

Commit aed3c94

Browse files
committed
fix(ci): cmake proto_cpp find
Signed-off-by: jdsika <carlo.van-driesten@bmw.de>
1 parent 999308b commit aed3c94

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ find_package(Protobuf CONFIG QUIET)
6969
if(NOT Protobuf_FOUND)
7070
find_package(Protobuf REQUIRED)
7171
endif()
72+
if(NOT COMMAND protobuf_generate_cpp)
73+
include(FindProtobuf)
74+
endif()
7275

7376
file(GLOB OSI_PROTO_FILES open-simulation-interface/*.proto)
7477
list(INSERT OSI_PROTO_FILES 0 ${CMAKE_CURRENT_BINARY_DIR}/osi_version.proto)

0 commit comments

Comments
 (0)