ceph/cmake/modules
Kefu Chai c028de2f93 cmake: rewrite Findgenl to support components argument
* rename genl to nl:
  "genl" is not very specific without more context. and libnl is actually
  a library suite. so it would be better if we can rename the library to
  be found to "libnl", and by following the naming convention of CMake,
  in this change, Findgenl.cmake is renamed to Findnl.cmake
* Findnl.cmake: support the component argument, in our specific case,
  what we want is "libnl-genl" library, which is one of the libraries
  offered by libnl. so let's just make it a component.
* Findnl.cmake: should pass the names of the required variables instead of
  their values to `find_package_handle_standard_args()`. before this
  change, we pass `GENL_LIBRARIES` to this function. it was correct at the
  first glance. but it is not able to handle the case where case where
  libnl-genl is not installed. so the fix is to pass all the names of
  required library paths to this function. in this change, their name
  are concatenated to a single variable -- `nl_LIBRARIES`, and the
  value of this variable is passed to
  `find_package_handle_standard_args()`. and the error message would
  be more specific this way if libnl-genl is not found:
    Could NOT find nl (missing: nl_genl_LIBRARY)
* Findnl.cmake: add nl::<component> as imported library, it helps the
  consumer of these libraries to import them -- no need to
  specify the `target_include_directories()` separately anymore.
* move the find_package() code to where it is used. it helps to improve
  the readability.
* remove `HAVE_GENL` variable: it's not used anywhere.
* drop the messages of "Not using foobar", they do not help.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-06-19 21:21:00 +08:00
..
AddCephTest.cmake cmake: allow setting of the CTest timeout during building. 2018-10-29 23:16:33 +01:00
boost_context_asm_arm_syntax_unified.patch cmake: move boost patch to cmake/modules 2019-06-12 16:32:10 +08:00
BuildBoost.cmake cmake: move boost patch to cmake/modules 2019-06-12 16:32:10 +08:00
Buildc-ares.cmake
BuildDPDK.cmake cmake: update built libs of SPDK and DPDK 2019-06-13 19:35:26 +08:00
BuildFIO.cmake objectstore/test/fio: Fixed fio compilation when tcmalloc is used. 2018-09-13 09:43:48 +02:00
BuildQatDrv.cmake crypto: QAT Wrapper for Ceph Encryption 2018-10-18 21:48:18 -07:00
BuildRocksDB.cmake cmake: silence GCC-9 warnings from rocksdb 2019-06-13 19:35:26 +08:00
BuildSPDK.cmake cmake: silence -Waddress-of-packed-member warnings from SPDK 2019-06-13 19:35:26 +08:00
CheckCxxAtomic.cmake
CheckYasm.cmake cmake: extract Yasm check into a module 2018-07-28 16:53:10 +08:00
CTags.cmake
Distutils.cmake cmake: remove cython 0.29's subinterpreter check during install 2019-03-20 18:56:43 +11:00
Findaio.cmake
Findbabeltrace.cmake
FindBacktrace.cmake
Findblkid.cmake
FindBoost.cmake cmake: update FindBoost.cmake 2019-02-07 15:35:16 +08:00
Findc-ares.cmake cmake: require 4.0.0 <= libfmt-dev < 5.0.0 2018-08-02 22:14:03 +08:00
FindCUnit.cmake
FindCython.cmake
Finddpdk.cmake cmake: fix the build WITH_DPDK=ON 2018-09-05 13:53:57 +08:00
Findfcgi.cmake
Findfio.cmake
Findfmt.cmake cmake: fix version matching for Findfmt 2018-09-10 10:22:24 -04:00
Findfuse.cmake
FindGMock.cmake cmake: link against gtest in a better way 2018-08-17 15:21:27 +08:00
Findgperftools.cmake cmake: import allocator libraries in a better way 2018-07-26 15:16:48 +08:00
FindGSSApi.cmake auth: Kerberos authentication 2018-12-03 18:55:46 -07:00
FindJeMalloc.cmake cmake: fix a cmake error when with -DALLOCATOR=jemalloc. 2018-08-02 16:38:53 +08:00
Findkeyutils.cmake cmake: extract mount.ceph into src/mount 2018-07-28 16:53:10 +08:00
Findleveldb.cmake
FindLTTngUST.cmake
FindLZ4.cmake cmake: add LZ4::LZ4 target for LZ4 2018-08-06 17:38:07 +08:00
Findnl.cmake cmake: rewrite Findgenl to support components argument 2019-06-19 21:21:00 +08:00
FindNSPR.cmake
FindNSS.cmake
FindOATH.cmake
FindOpenLdap.cmake
FindPython3Interp.cmake
FindPython3Libs.cmake
Findqatzip.cmake
FindRabbitMQ.cmake cmake: find_package(RabbitMQ) instead of just checking its header 2019-02-21 19:00:24 +08:00
Findrdmacm.cmake
FindRocksDB.cmake cmake/FindRocksDB: fix IMPORTED_LOCATION for ROCKSDB_LIBRARIES 2019-03-27 10:18:26 +08:00
FindSanitizers.cmake cmake/modules: replace ";" with " " in compile flags 2019-05-31 16:19:08 +08:00
Findsnappy.cmake cmake: cleanup snappy related script 2018-08-06 17:16:46 +08:00
FindStdFilesystem_test.cc cmake: Make the tests for finding Filesystem with more serious functions 2019-02-14 13:18:50 +01:00
FindStdFilesystem.cmake cmake: fix StdFilesystem detection 2018-08-02 14:37:49 +08:00
Findudev.cmake
Finduuid.cmake
Findverbs.cmake
Findxfs.cmake
Findzfs.cmake
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
patch-dpdk-conf.sh
SIMDExt.cmake Merge pull request #24168 from tchaikov/wip-17516 2018-10-04 16:10:18 -07:00