Skip to content

Commit

Permalink
Merge pull request #10828 from michelmno/perf_local_flags
Browse files Browse the repository at this point in the history
cmake: use PERF_LOCAL_FLAGS only if defined

Reviewed-by: Nathan Cutler <ncutler@suse.com>
Reviewed-by: Kefu Chai <kchai@redhat.com>
  • Loading branch information
tchaikov committed Aug 26, 2016
2 parents b0f9aaf + afcec70 commit 3c6d48b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/test/CMakeLists.txt
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 3c6d48b

Please sign in to comment.