Force installation of protobuf-compiler at configure step

This commit is contained in:
Seth Hillbrand 2024-04-03 10:30:06 -07:00
parent 2acf928723
commit 6c73e70dad
1 changed files with 4 additions and 0 deletions

View File

@ -862,7 +862,11 @@ else()
endif()
if( NOT Protobuf_PROTOC_EXECUTABLE )
if( NOT KICAD_USE_CMAKE_FINDPROTOBUF)
set( Protobuf_PROTOC_EXECUTABLE "protobuf::protoc" )
else()
MESSAGE( FATAL_ERROR "Protobuf compiler not found. Please install protobuf-compiler." )
endif()
endif()
if( NOT Protobuf_INCLUDE_DIR )