summaryrefslogtreecommitdiffstats
path: root/src/erasure-code
diff options
context:
space:
mode:
authorKefu Chai <kchai@redhat.com>2016-07-04 07:55:02 +0200
committerKefu Chai <kchai@redhat.com>2016-07-04 07:55:44 +0200
commite1f67bdea8eb336c8114a7fa19226320b6a675a0 (patch)
tree9f0b96c9db271431277fcc044dedb9471a81a853 /src/erasure-code
parentcmake: do not link libglobal with lttng-ust (diff)
downloadceph-e1f67bdea8eb336c8114a7fa19226320b6a675a0.tar.xz
ceph-e1f67bdea8eb336c8114a7fa19226320b6a675a0.zip
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>
Diffstat (limited to 'src/erasure-code')
-rw-r--r--src/erasure-code/CMakeLists.txt9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/erasure-code/CMakeLists.txt b/src/erasure-code/CMakeLists.txt
index 580964420ed..940bc2662fc 100644
--- a/src/erasure-code/CMakeLists.txt
+++ b/src/erasure-code/CMakeLists.txt
@@ -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()