Skip to content

Commit 8e19101

Browse files
authored
Merge pull request #9863 from fwyzard/IB/CMSSW_15_1_X/master_fix_onnxruntime
ONNX Runtime: depend explicitly on Eigen
2 parents 2870eb8 + c3aa2ea commit 8e19101

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

onnxruntime.spec

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&expo
88
Patch0: onnxruntime-gcc13
99

1010
BuildRequires: 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
2424
fi
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

0 commit comments

Comments
 (0)