forked from pool/python-onnx
* protobuf.patch OBS-URL: https://build.opensuse.org/package/show/science:machinelearning/python-onnx?expand=0&rev=13
23 lines
881 B
Diff
23 lines
881 B
Diff
From 7bcb1302352c9953bfc396c3ec2114b382c65614 Mon Sep 17 00:00:00 2001
|
|
From: Tongliang Liao <xkszltl@gmail.com>
|
|
Date: Fri, 29 Nov 2019 19:48:59 -0800
|
|
Subject: [PATCH] python_out does not recognize dllexport_decl.
|
|
|
|
---
|
|
CMakeLists.txt | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c7ab64fdda..bf23ac75fe 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -238,7 +238,7 @@ function(RELATIVE_PROTOBUF_GENERATE_CPP NAME SRCS HDRS ROOT_DIR DEPEND)
|
|
${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR})
|
|
if(BUILD_ONNX_PYTHON)
|
|
list(APPEND PROTOC_ARGS --python_out
|
|
- ${ONNX_DLLEXPORT_STR}${CMAKE_CURRENT_BINARY_DIR})
|
|
+ ${CMAKE_CURRENT_BINARY_DIR})
|
|
if(ONNX_GEN_PB_TYPE_STUBS)
|
|
# Haven't figured out how to generate mypy stubs on Windows yet
|
|
if(NOT WIN32)
|