]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake - Allow tests to build without NSS 13315/head
authorDaniel Gryniewicz <dang@redhat.com>
Wed, 8 Feb 2017 16:44:53 +0000 (11:44 -0500)
committerDaniel Gryniewicz <dang@redhat.com>
Mon, 10 Apr 2017 17:35:11 +0000 (13:35 -0400)
Without NSS, things that link radowsgw_a (including
ceph_test_cephd_api_misc) needs SSL libs linked in.  These are pulled in
by civetweb.

Signed-off-by: Daniel Gryniewicz <dang@redhat.com>
src/rgw/CMakeLists.txt
src/test/libcephd/CMakeLists.txt

index d48905b86aca00d161988236f55d77e0923df874..febe22b075805e2b83c7c5805fa477eec3d91e50 100644 (file)
@@ -140,7 +140,7 @@ endif (WITH_RADOSGW_ASIO_FRONTEND)
 
 add_library(radosgw_a STATIC ${radosgw_srcs}
   $<TARGET_OBJECTS:civetweb_common_objs>)
-target_link_libraries(radosgw_a rgw_a)
+target_link_libraries(radosgw_a rgw_a ${SSL_LIBRARIES})
 
 add_executable(radosgw rgw_main.cc)
 target_link_libraries(radosgw radosgw_a librados
@@ -148,7 +148,7 @@ target_link_libraries(radosgw radosgw_a librados
   cls_log_client cls_statelog_client cls_timeindex_client
   cls_version_client cls_replica_log_client cls_user_client
   global ${FCGI_LIBRARY} ${LIB_RESOLV}
-  ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} ${SSL_LIBRARIES} ${BLKID_LIBRARIES}
+  ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} ${BLKID_LIBRARIES}
   ${ALLOC_LIBS})
 # radosgw depends on cls libraries at runtime, but not as link dependencies
 add_dependencies(radosgw cls_rgw cls_lock cls_refcount
index 8aa253562c4b8b0b2ff8e1df2038c8ec2c1b767e..a12e8ea40c8460239a74d5be915a9729be3ac204 100644 (file)
@@ -16,7 +16,7 @@ add_executable(ceph_test_cephd_api_misc
 set_target_properties(ceph_test_cephd_api_misc PROPERTIES COMPILE_FLAGS
   ${UNITTEST_CXX_FLAGS})
 target_link_libraries(ceph_test_cephd_api_misc
-  cephd global ${UNITTEST_LIBS} cephdtest z snappy ceph_zstd)
+       cephd global ${UNITTEST_LIBS} cephdtest z snappy ceph_zstd)
 
 install(TARGETS
   ceph_test_cephd_api_misc