From afcec7038c1b34f08a6d6abfcd3ce7e5050f3608 Mon Sep 17 00:00:00 2001 From: Michel Normand Date: Tue, 23 Aug 2016 17:24:15 +0200 Subject: [PATCH] cmake: use PERF_LOCAL_FLAGS only if defined in src/test/CMakeLists.txt to avoid build error for ppc64/ppc64le archi Fixes: http://tracker.ceph.com/issues/17104 Signed-off-by: Michel Normand --- src/test/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 22c9a2ca39c..b63522f3828 100644 --- a/src/test/CMakeLists.txt +++ b/src/test/CMakeLists.txt @@ -363,8 +363,10 @@ 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}) +if(PERF_LOCAL_FLAGS) + set_target_properties(ceph_perf_local PROPERTIES COMPILE_FLAGS + ${PERF_LOCAL_FLAGS}) +endif() target_link_libraries(ceph_perf_local os global ${UNITTEST_LIBS}) # ceph_xattr_bench -- 2.39.5