Skip to content

Commit

Permalink
cmake: use PERF_LOCAL_FLAGS only if defined
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
michelmno committed Aug 24, 2016
1 parent d8a02b9 commit afcec70
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit afcec70

Please sign in to comment.