]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: use PERF_LOCAL_FLAGS only if defined 10828/head
authorMichel Normand <normand@linux.vnet.ibm.com>
Tue, 23 Aug 2016 15:24:15 +0000 (17:24 +0200)
committerMichel Normand <normand@linux.vnet.ibm.com>
Wed, 24 Aug 2016 06:54:42 +0000 (08:54 +0200)
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 <normand@linux.vnet.ibm.com>
src/test/CMakeLists.txt

index 22c9a2ca39cbbc05c08eb0f0847b44c0749f3e6f..b63522f38288b049087cb8dc8410235556cc8b08 100644 (file)
@@ -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