Skip to content

Commit d8a16f5

Browse files
committed
fix: explicitly find protoc for macOS compatibility
1 parent b399348 commit d8a16f5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,12 @@ if(NOT Protobuf_FOUND)
8282
find_package(Protobuf REQUIRED)
8383
endif()
8484

85+
# Ensure protoc executable is found (some systems may not set Protobuf_PROTOC_EXECUTABLE)
86+
if(NOT Protobuf_PROTOC_EXECUTABLE)
87+
find_program(Protobuf_PROTOC_EXECUTABLE NAMES protoc REQUIRED)
88+
endif()
89+
message(STATUS "Using protoc: ${Protobuf_PROTOC_EXECUTABLE}")
90+
8591
add_library(livekit_proto OBJECT ${FFI_PROTO_FILES})
8692
target_include_directories(livekit_proto PRIVATE
8793
"$<BUILD_INTERFACE:${PROTO_BINARY_DIR}>"

0 commit comments

Comments
 (0)