]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
CMakeLists: nss only, ignore cryptopp
authorSage Weil <sage@redhat.com>
Thu, 23 Jun 2016 18:22:30 +0000 (14:22 -0400)
committerKefu Chai <kchai@redhat.com>
Wed, 29 Jun 2016 14:26:24 +0000 (22:26 +0800)
Signed-off-by: Sage Weil <sage@redhat.com>
CMakeLists.txt

index ea937f10cd5d76f2c5fa8c7c7a8f8597e1dae9da..a3a76666b4904009d9a0f146196c1df79f9d494f 100644 (file)
@@ -284,26 +284,19 @@ find_package(libuuid REQUIRED)
 
 find_package(libcurl REQUIRED)
 
-option(USE_CRYPTOPP "Cryptopp is ON" ON)
-find_package(cryptopp)
-if(CRYPTOPP_FOUND)
-        MESSAGE(STATUS "${CRYPTOPP_LIBRARIES}")
-        set(CRYPTO_LIBS ${CRYPTOPP_LIBRARIES})
-       set(USE_NSS 0)
-else()
-        MESSAGE(STATUS "Cryptopp not found using NSS instead")
-       find_package(NSS REQUIRED)
-        if(NSS_FOUND)
-               set(USE_NSS 1)
-               set(USE_CRYPTOPP 0)
-               find_package(NSPR)
-               if(NSPR_FOUND)
-                       set(CRYPTO_LIBS ${NSS_LIBRARIES} ${NSPR_LIBRARIES})
-                       #MESSAGE(STATUS "${CRYPTO_LIBS}")
-                       #MESSAGE(STATUS "${NSS_INCLUDE_DIR} ${NSPR_INCLUDE_DIR}")
-               endif(NSPR_FOUND)
-       endif(NSS_FOUND)
-endif(CRYPTOPP_FOUND)
+# nss or cryptopp?
+#  (dropped cryptopp support for now, feel free to add it back -sage)
+find_package(NSS REQUIRED)
+if(NSS_FOUND)
+       set(USE_NSS 1)
+       find_package(NSPR)
+       if(NSPR_FOUND)
+               set(CRYPTO_LIBS ${NSS_LIBRARIES} ${NSPR_LIBRARIES})
+               #MESSAGE(STATUS "${CRYPTO_LIBS}")
+               #MESSAGE(STATUS "${NSS_INCLUDE_DIR} ${NSPR_INCLUDE_DIR}")
+       endif(NSPR_FOUND)
+endif(NSS_FOUND)
+
 
 option(WITH_XIO "Enable XIO messaging" OFF)
 if(WITH_XIO)