]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
src/test/CMakeLists.txt: don't assume Intel (sse/sse2)
authorDan Mick <dan.mick@redhat.com>
Tue, 26 Jul 2016 03:04:42 +0000 (20:04 -0700)
committerDan Mick <dan.mick@redhat.com>
Tue, 26 Jul 2016 03:05:26 +0000 (20:05 -0700)
Fixes ARM64 build of ceph_perf_local test

Signed-off-by: Dan Mick <dan.mick@redhat.com>
src/test/CMakeLists.txt

index 9c1163b684552d86d5e8b618f7fd796b2b1f10ea..35e8907502175a611025d40868a307f2e5933823 100644 (file)
@@ -356,8 +356,12 @@ target_link_libraries(ceph_multi_stress_watch librados global radostest
 add_executable(ceph_perf_local 
   perf_local.cc
   perf_helper.cc)
-#INTEL_SSE & INTEL_SSE2 flags
-set(PERF_LOCAL_FLAGS "-msse -msse2")
+if(HAVE_SSE)
+  set(PERF_LOCAL_FLAGS ${SSE3_FLAGS})
+endif(HAVE_SSE)
+if(HAVE_NEON)
+  set(PERF_LOCAL_FLAGS ${ARM_NEON_FLAGS})
+endif(HAVE_NEON)
 set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS
   ${PERF_LOCAL_FLAGS})
 target_link_libraries(ceph_perf_local os global ${UNITTEST_LIBS})