vcpkg/ports/libtorch/fix-onnx-case.patch

14 lines
513 B
Diff
Raw Normal View History

diff --git a/cmake/Dependencies.cmake b/cmake/Dependencies.cmake
index 8c1742591..a2ca73b6e 100644
--- a/cmake/Dependencies.cmake
+++ b/cmake/Dependencies.cmake
@@ -1581,7 +1581,7 @@ if(CAFFE2_CMAKE_BUILDING_WITH_MAIN_REPO AND NOT INTERN_DISABLE_ONNX)
target_compile_options(onnx PRIVATE -Wno-deprecated-declarations)
endif()
else()
- find_package(onnx REQUIRED)
+ find_package(ONNX REQUIRED)
set(ONNX_LIBRARY onnx)
set(ONNX_PROTO_LIBRARY onnx_proto)
message("-- Found onnx")