Skip to content

Commit

Permalink
Add protocand see if we should patch cmake
Browse files Browse the repository at this point in the history
  • Loading branch information
Altina-oz authored Dec 17, 2024
1 parent 05898eb commit 74fcb2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/g/grpc/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ package("grpc")
"-DgRPC_PROTOBUF_PACKAGE_TYPE=CONFIG"}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
if package:is_cross() then
package:add("deps", "protoc")
end
import("package.tools.cmake").install(package, configs, {packagedeps = {"abseil", "protobuf-cpp"}})
end)

Expand Down

0 comments on commit 74fcb2c

Please sign in to comment.