src/test/CMakeLists.txt: don't assume Intel (sse/sse2)

Fixes ARM64 build of ceph_perf_local test

Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2016-07-25 20:04:42 -07:00
parent dbdd1a8526
commit 7595b0b66f

View 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})