File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&expo
88Patch0: onnxruntime-gcc13
99
1010BuildRequires: cmake ninja
11- Requires: protobuf py3-numpy py3-wheel py3-onnx zlib libpng py3-pybind11 re2
11+ Requires: protobuf py3-numpy py3-wheel py3-onnx zlib libpng py3-pybind11 re2 eigen
1212%{! ?without_cuda:Requires: cuda cudnn}
1313
1414%prep
@@ -23,7 +23,9 @@ if [ "%{cuda_gcc_support}" = "true" ] ; then
2323 USE_CUDA= ON
2424fi
2525
26- cmake ../%{n }-%{realversion }/cmake -GNinja \
26+ cmake ../%{n }-%{realversion }/cmake \
27+ -G Ninja \
28+ -Wno-dev \
2729 -DPYTHON_EXECUTABLE= ${PYTHON3_ROOT}/bin/python3 \
2830 -DCMAKE_BUILD_TYPE= Release \
2931 -DCMAKE_INSTALL_PREFIX= "%{i }" \
@@ -52,7 +54,7 @@ cmake ../%{n}-%{realversion}/cmake -GNinja \
5254 -Donnxruntime_DISABLE_CONTRIB_OPS= OFF \
5355 -Donnxruntime_PREFER_SYSTEM_LIB= ON \
5456 -Donnxruntime_BUILD_UNIT_TESTS= OFF \
55- -DCMAKE_PREFIX_PATH= "${ZLIB_ROOT};${LIBPNG_ROOT};${PROTOBUF_ROOT};${PY3_PYBIND11_ROOT};${RE2_ROOT}" \
57+ -DCMAKE_PREFIX_PATH= "${ZLIB_ROOT};${LIBPNG_ROOT};${PROTOBUF_ROOT};${PY3_PYBIND11_ROOT};${RE2_ROOT};${EIGEN_ROOT} " \
5658 -DRE2_INCLUDE_DIR= "${RE2_ROOT}/include" \
5759 -DCMAKE_CXX_FLAGS= "-Wno-error= stringop-overflow -Wno-error= maybe-uninitialized -Wno-error= overloaded-virtual"
5860
You can’t perform that action at this time.
0 commit comments