]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: move crypto_plugins target 22314/head
authorCasey Bodley <cbodley@redhat.com>
Tue, 8 May 2018 18:22:42 +0000 (14:22 -0400)
committerJan Fajerski <jfajerski@suse.com>
Wed, 30 May 2018 07:23:16 +0000 (09:23 +0200)
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>
(cherry picked from commit 61516bcfac4dff53d0e24f6c4623127465c46d9d)

src/CMakeLists.txt
src/crypto/CMakeLists.txt [new file with mode: 0644]
src/crypto/isa-l/CMakeLists.txt

index 3d1969c10949d74bf40212d98b9140a05efdb38b..3d3b4c09199169227c655bc665002c3e01a6bb0c 100644 (file)
@@ -917,9 +917,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)