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:
Kefu Chai 2016-07-04 13:55:02 +08:00
parent e8fa03d42a
commit e1f67bdea8

View File

@ -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()