Fix a build issue (related to protobuf) on mingw/msys2

This commit is contained in:
jean-pierre charras
2025-06-06 18:28:23 +02:00
parent 095158d70c
commit aa892efc17
+8
View File
@@ -863,6 +863,14 @@ if( NOT _protobuf_found )
endif()
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()
# Assist with header file searching optimization:
# INC_BEFORE and INC_AFTER are two lists which go at the front and back of the