Skip to content

Commit f449e5b

Browse files
committed
try always using lite
1 parent 0327d48 commit f449e5b

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

cmake/vcpkg-ports/onnx/portfile.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ vcpkg_cmake_configure(
3636
"-DProtobuf_PROTOC_EXECUTABLE:FILEPATH=${PROTOC}"
3737
-DONNX_ML=ON
3838
-DONNX_USE_PROTOBUF_SHARED_LIBS=${USE_PROTOBUF_SHARED}
39+
-DONNX_USE_LITE_PROTO=ON
3940
-DONNX_USE_MSVC_STATIC_RUNTIME=${USE_STATIC_RUNTIME}
4041
-DONNX_BUILD_TESTS=OFF
4142
-DONNX_BUILD_BENCHMARKS=OFF

tools/python/util/vcpkg_helpers.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,6 @@ 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-
)
9385

9486
f.write(r"""
9587
endif() # End ONNX-specific block

0 commit comments

Comments
 (0)