Skip to content

Commit 0327d48

Browse files
committed
try -DONNX_USE_LITE_PROTO=OFF
1 parent ca12fbd commit 0327d48

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tools/python/util/vcpkg_helpers.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ def add_port_configs(f, has_exception: bool, is_emscripten: bool, enable_minimal
8282
"-DONNX_USE_LITE_PROTO=ON"
8383
)"""
8484
)
85+
else:
86+
# keep default OFF for non-WebAssembly builds.
87+
f.write(
88+
r"""
89+
list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS
90+
"-DONNX_USE_LITE_PROTO=OFF"
91+
)"""
92+
)
8593

8694
f.write(r"""
8795
endif() # End ONNX-specific block

0 commit comments

Comments
 (0)