[pcl] Disable SSE for non x86_64 archs
rmattes
rmattes at fedoraproject.org
Tue Aug 27 02:44:12 UTC 2013
commit 34ad687eab15782e54c635b8276470c26e06e013
Author: Rich Mattes <richmattes at gmail.com>
Date: Mon Aug 26 22:43:57 2013 -0400
Disable SSE for non x86_64 archs
pcl.spec | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/pcl.spec b/pcl.spec
index 8dd5e34..aef66d0 100644
--- a/pcl.spec
+++ b/pcl.spec
@@ -80,7 +80,7 @@ Library.
%patch0 -p1 -b .vtk6
%patch1 -p0 -b .metslib
# Just to make it obvious we're not using any of these
-#rm -fr recognition/include/pcl/recognition/3rdparty/metslib
+rm -fr recognition/include/pcl/recognition/3rdparty/metslib
rm -fr surface/src/3rdparty/opennurbs
rm -rf surface/include/pcl/surface/3rdparty/opennurbs
@@ -91,6 +91,11 @@ pushd build
-DCMAKE_BUILD_TYPE=NONE \
-DOPENNI_INCLUDE_DIR:PATH=/usr/include/ni \
-DLIB_INSTALL_DIR=$(echo %{_libdir} | sed -e 's|%{_prefix}/||') \
+%ifarch x86_64
+ -DPCL_ENABLE_SSE=ON \
+%else
+ -DPCL_ENABLE_SSE=OFF \
+%endif
-DPCL_PKGCONFIG_SUFFIX:STRING="" \
-DBUILD_documentation=ON \
-DCMAKE_SKIP_RPATH=ON \
More information about the scm-commits
mailing list