Skip to content

Commit 5cffcc8

Browse files
tz12323Copilot
andcommitted
fix: force protobuf runtime targets
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 900c52f commit 5cffcc8

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎pkgs/c/compat.onnxruntime.lua‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,11 @@ function install()
138138
"-Donnxruntime_USE_MIMALLOC=OFF",
139139
"-Donnxruntime_USE_VCPKG=OFF",
140140
"-Dprotobuf_WITH_ZLIB=OFF",
141+
"-Dprotobuf_BUILD_PROTOBUF_BINARIES=ON",
142+
"-Dprotobuf_BUILD_PROTOC_BINARIES=ON",
143+
"-Dprotobuf_BUILD_LIBPROTOC=ON",
144+
"-Dprotobuf_BUILD_TESTS=OFF",
145+
"-Dprotobuf_INSTALL=OFF",
141146
}, " ")
142147
if os.host() == "linux" then
143148
configure = configure .. " -DCMAKE_SHARED_LINKER_FLAGS="

0 commit comments

Comments
 (0)