From: Michel Normand Date: Tue, 23 Aug 2016 15:24:15 +0000 (+0200) Subject: cmake: use PERF_LOCAL_FLAGS only if defined X-Git-Tag: v11.0.1~387^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F10828%2Fhead;p=ceph.git 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 --- diff --git a/src/test/CMakeLists.txt b/src/test/CMakeLists.txt index 22c9a2ca39cb..b63522f38288 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