]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: do not depend on sse jerasure plugins if not avaiable
authorKefu Chai <kchai@redhat.com>
Mon, 4 Jul 2016 05:55:02 +0000 (13:55 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 4 Jul 2016 05:55:44 +0000 (13:55 +0800)
should not depend on them if SSE3 and/or SSE4 is not around.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/erasure-code/CMakeLists.txt

index 580964420ed128cfd05d380872dc3d7144730750..940bc2662fcf24f5de8ae5531a51aa1f40ba7fc5 100644 (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()