mirror of
https://github.com/ceph/ceph
synced 2024-12-17 08:57:28 +00:00
cmake: do not depend on sse jerasure plugins if not avaiable
should not depend on them if SSE3 and/or SSE4 is not around. Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
e8fa03d42a
commit
e1f67bdea8
@ -24,7 +24,10 @@ add_library(erasure_code_objs OBJECT ErasureCode.cc)
|
||||
add_custom_target(erasure_code_plugins DEPENDS
|
||||
${EC_ISA_LIB}
|
||||
ec_lrc
|
||||
ec_jerasure_sse3
|
||||
ec_jerasure_sse4
|
||||
ec_jerasure)
|
||||
|
||||
if(TARGET ec_jerasure_sse3)
|
||||
add_dependencies(erasure_code_plugins ec_jerasure_sse3)
|
||||
endif()
|
||||
if(TARGET ec_jerasure_sse4)
|
||||
add_dependencies(erasure_code_plugins ec_jerasure_sse4)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user