]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
cmake: s/OPENLDAP/OpenLDAP/
authorKefu Chai <kchai@redhat.com>
Sat, 24 Jul 2021 09:28:11 +0000 (17:28 +0800)
committerKefu Chai <kchai@redhat.com>
Sat, 24 Jul 2021 11:28:56 +0000 (19:28 +0800)
the upstream project of OpenLDAP is named "OpenLDAP", so rename OPENLDAP to
OpenLDAP for better readability.

Signed-off-by: Kefu Chai <kchai@redhat.com>
CMakeLists.txt
cmake/modules/FindOpenLDAP.cmake [new file with mode: 0644]
cmake/modules/FindOpenLdap.cmake [deleted file]
src/rgw/CMakeLists.txt
src/test/CMakeLists.txt
src/test/librados/CMakeLists.txt

index 1dd103b35ce60f1c571b669813f7904810d145ad..0e289346112b52a736c30a2fa0247e7e25290acd 100644 (file)
@@ -163,8 +163,8 @@ endif(LINUX)
 
 option(WITH_OPENLDAP "OPENLDAP is here" ON)
 if(WITH_OPENLDAP)
-  find_package(OpenLdap REQUIRED)
-  set(HAVE_OPENLDAP ${OPENLDAP_FOUND})
+  find_package(OpenLDAP REQUIRED)
+  set(HAVE_OPENLDAP ${OpenLDAP_FOUND})
 endif()
 
 option(WITH_GSSAPI "GSSAPI/KRB5 is here" OFF)
diff --git a/cmake/modules/FindOpenLDAP.cmake b/cmake/modules/FindOpenLDAP.cmake
new file mode 100644 (file)
index 0000000..1d515c1
--- /dev/null
@@ -0,0 +1,22 @@
+# - Find OpenLDAP C Libraries
+#
+# OpenLDAP_FOUND - True if found.
+# OpenLDAP_INCLUDE_DIR - Path to the openldap include directory
+# OpenLDAP_LIBRARIES - Paths to the ldap and lber libraries
+
+find_path(OpenLDAP_INCLUDE_DIR ldap.h PATHS
+  /usr/include
+  /opt/local/include
+  /usr/local/include)
+
+find_library(LDAP_LIBRARY ldap)
+find_library(LBER_LIBRARY lber)
+
+include(FindPackageHandleStandardArgs)
+find_package_handle_standard_args(OpenLDAP DEFAULT_MSG
+  OpenLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
+
+set(OpenLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY})
+
+mark_as_advanced(
+  OpenLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
diff --git a/cmake/modules/FindOpenLdap.cmake b/cmake/modules/FindOpenLdap.cmake
deleted file mode 100644 (file)
index 35b711d..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-# - Find OpenLDAP C Libraries
-#
-# OPENLDAP_FOUND - True if found.
-# OPENLDAP_INCLUDE_DIR - Path to the openldap include directory
-# OPENLDAP_LIBRARIES - Paths to the ldap and lber libraries
-
-find_path(OPENLDAP_INCLUDE_DIR ldap.h PATHS
-  /usr/include
-  /opt/local/include
-  /usr/local/include)
-
-find_library(LDAP_LIBRARY ldap)
-find_library(LBER_LIBRARY lber)
-
-include(FindPackageHandleStandardArgs)
-find_package_handle_standard_args(OpenLdap DEFAULT_MSG
-  OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
-
-set(OPENLDAP_LIBRARIES ${LDAP_LIBRARY} ${LBER_LIBRARY})
-
-mark_as_advanced(
-  OPENLDAP_INCLUDE_DIR LDAP_LIBRARY LBER_LIBRARY)
index 789c060a983b9f6bcd35922c0db706d4b1564e0c..adcbac49d005fae886e25c6c271661c2acd105eb 100644 (file)
@@ -188,7 +188,7 @@ target_link_libraries(rgw_common
     ${CURL_LIBRARIES}
     ${EXPAT_LIBRARIES}
     ${LUA_LIBRARIES}
-    ${OPENLDAP_LIBRARIES}
+    ${OpenLDAP_LIBRARIES}
   PUBLIC
     spawn)
 target_include_directories(rgw_common
index 28d1f7849de3c54863bb2e780a037914541be103..6300943e625823873eefbf8725a9bb7f2073dab7 100644 (file)
@@ -1,7 +1,7 @@
 include(AddCephTest)
 
 set(UNITTEST_LIBS GMock::Main GMock::GMock GTest::GTest ${CMAKE_THREAD_LIBS_INIT} 
-    ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES} ${CMAKE_DL_LIBS})
+    ${GSSAPI_LIBRARIES} ${OpenLDAP_LIBRARIES} ${CMAKE_DL_LIBS})
 
 if(WIN32)
   # Needed by Boost.
@@ -386,7 +386,7 @@ add_executable(test_rgw_ldap
 target_link_libraries(test_rgw_ldap
   librados
   ceph-common
-  ${OPENLDAP_LIBRARIES}
+  ${OpenLDAP_LIBRARIES}
   ${UNITTEST_LIBS}
   )
 endif(${WITH_RADOSGW})
index 344bca77c808260265ad67d3fd0b5615599c32d3..d7eb66730e1c00845d10b00448702801bf1d7db9 100644 (file)
@@ -12,7 +12,7 @@ target_link_libraries(radostest PUBLIC
   GTest::GTest
   ceph-common
   json_spirit
-  ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES} ${EXTRALIBS})
+  ${GSSAPI_LIBRARIES} ${OpenLDAP_LIBRARIES} ${EXTRALIBS})
 add_library(radostest-cxx STATIC
   testcase_cxx.cc
   test_cxx.cc
@@ -181,7 +181,7 @@ add_executable(unittest_librados
   )
 add_ceph_unittest(unittest_librados)
 target_link_libraries(unittest_librados librados ${BLKID_LIBRARIES}
-       ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES})
+       ${GSSAPI_LIBRARIES} ${OpenLDAP_LIBRARIES})
 
 # unittest_librados_config
 add_executable(unittest_librados_config
@@ -190,7 +190,7 @@ add_executable(unittest_librados_config
 add_ceph_unittest(unittest_librados_config)
 target_link_libraries(unittest_librados_config
   librados
-  ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES} ${OPENLDAP_LIBRARIES})
+  ${BLKID_LIBRARIES} ${GSSAPI_LIBRARIES} ${OpenLDAP_LIBRARIES})
 
 # Removing this test. We can't shove it into Finisher as it's not a
 # Context any more, and wrapping it to adapt it would be less fair.