0
0
mirror of https://github.com/termux/termux-packages.git synced 2025-05-10 05:45:31 +00:00
Files
termux-packages/packages/libncnn/use-cross-protoc.patch
Robert Kirkman 702442b70d bump(main/libncnn): 20241226
- migrate to `libprotobuf`
- depend on new `libandroid-stub`: https://github.com/termux/termux-packages/pull/23712
2025-05-01 14:23:04 -05:00

32 lines
914 B
Diff

For some reason, this by itself makes libncnn select
/home/builder/.termux-build/_cache/protobuf-30.0/bin/protoc
instead of
/data/data/com.termux/files/usr/bin/protoc-30.0.0
--- a/tools/caffe/CMakeLists.txt
+++ b/tools/caffe/CMakeLists.txt
@@ -1,5 +1,4 @@
-find_package(protobuf CONFIG)
if(protobuf_FOUND)
set(PROTOBUF_FOUND ${protobuf_FOUND})
--- a/tools/onnx/CMakeLists.txt
+++ b/tools/onnx/CMakeLists.txt
@@ -1,5 +1,4 @@
-find_package(protobuf CONFIG)
if(protobuf_FOUND)
set(PROTOBUF_FOUND ${protobuf_FOUND})
--- a/tools/pnnx/CMakeLists.txt
+++ b/tools/pnnx/CMakeLists.txt
@@ -95,7 +95,6 @@ if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
endif()
if((PNNX_TORCH_USE_CXX11_ABI AND PNNX_COMPILER_USE_CXX11_ABI) OR (NOT PNNX_TORCH_USE_CXX11_ABI AND NOT PNNX_COMPILER_USE_CXX11_ABI))
- find_package(protobuf CONFIG)
if(protobuf_FOUND)
set(PROTOBUF_FOUND ${protobuf_FOUND})