]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: move crypto_plugins target 21891/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 8 May 2018 18:22:42 +0000 (14:22 -0400)
committerCasey Bodley <cbodley@redhat.com>
Wed, 9 May 2018 13:06:55 +0000 (09:06 -0400)
the crypto_plugins target was defined in
src/crypto/isa-l/CMakeLists.txt, but this is only included
if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))

moving it out of the if() block allows the os target to depend on it
even if no plugins are built

Signed-off-by: Casey Bodley <cbodley@redhat.com>
src/CMakeLists.txt
src/crypto/CMakeLists.txt [new file with mode: 0644]
src/crypto/isa-l/CMakeLists.txt

index a5b975e66a0e72ffdb6ff826e258b1208d1fabbf..e0326c5ab3db43b7e5a2896ad1d32f522f34fc53 100644 (file)
@@ -920,9 +920,7 @@ if(WITH_TESTS AND WITH_DMCLOCK_TESTS)
   add_subdirectory(dmclock/support/test)
 endif(WITH_TESTS AND WITH_DMCLOCK_TESTS)
 
-if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
-  add_subdirectory(crypto/isa-l)
-endif()
+add_subdirectory(crypto)
 
 if(WITH_TESTS)
   configure_file(${CMAKE_SOURCE_DIR}/src/ceph-coverage.in
diff --git a/src/crypto/CMakeLists.txt b/src/crypto/CMakeLists.txt
new file mode 100644 (file)
index 0000000..ed8e108
--- /dev/null
@@ -0,0 +1,5 @@
+add_custom_target(crypto_plugins)
+
+if(HAVE_INTEL AND HAVE_BETTER_YASM_ELF64 AND (NOT APPLE))
+  add_subdirectory(isa-l)
+endif()
index 51b36989132e860d55ec54dce9d8ce9538ffc7b7..662dbdeba725a0dfba07aae4eaf50d7ba5e0661b 100644 (file)
@@ -26,7 +26,6 @@ add_library(isal_crypto_plugin_objs OBJECT ${isal_crypto_plugin_srcs})
 target_include_directories(isal_crypto_plugin_objs PRIVATE ${isal_dir}/include)
 set(isal_crypto_plugin_dir ${CMAKE_INSTALL_PKGLIBDIR}/crypto)
 
-add_custom_target(crypto_plugins)
 if(HAVE_GOOD_YASM_ELF64)
 add_dependencies(crypto_plugins ceph_crypto_isal)
 endif(HAVE_GOOD_YASM_ELF64)