ceph/cmake/modules
Kefu Chai ad85af2ef8 cmake/modules/Findpmem: always set pmem_VERSION_STRING
before this change, `pmem_VERSION_STRING` is not set if it is not able
to fulfill the specified version requirement. the intention was to check
if the version is able to satisfy the requirement. but actually, passing
an empty `pmem_VERSION_STRING` to `find_package_handle_standard_args()`
as the option of `VERSION_VAR` does not fail this check. on the
contrary, it prints

-- Found pmem: pmem_pmemobj_INCLUDE_DIR;pmem_pmem_INCLUDE_DIR (Required
is at least version "1.17")

if we requires pmem 1.17, while the found version is, for instance,
1.10.

if the required version is 1.7, and the found version is 1.10, the
output from cmake is:

-- Found pmem: pmem_pmemobj_INCLUDE_DIR;pmem_pmem_INCLUDE_DIR (found
suitable version "1.10", minimum required is "1.7")

in this change, the version spec is not specified when calling
`pkg_check_modules()`. so, `PKG_${component}_VERSION` is always set.
and we can always delegate the version checking to
`find_package_handle_standard_args()`. please note, we use the lower
version returned by pkg-config if multiple components are required and
both pkg-config settings return their versions.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2021-04-26 16:38:09 +08:00
..
FindPython cmake: add support for python3.9 2020-11-11 10:43:37 +08:00
AddCephTest.cmake cmake: pass unparsed args to add_ceph_test() 2021-03-30 17:33:56 +08:00
BuildBoost.cmake cmake,install-deps,make-dist: use boost 1.75 2021-04-05 15:09:29 +08:00
Buildc-ares.cmake
BuildDPDK.cmake cmake: use "" for no-op INSTALL_COMMAND 2021-03-09 19:13:21 +08:00
BuildFIO.cmake cmake: pass compile options by fio interface library 2021-03-23 16:25:47 +08:00
BuildJaeger.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
BuildOpenTracing.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
Buildpmem.cmake cmake: use src/pmdk for building pmdk if it exists 2021-04-15 10:40:06 +08:00
BuildQatDrv.cmake
BuildRocksDB.cmake cmake: do not specify CMAKE_GENERATOR for external projects 2021-03-09 19:13:22 +08:00
BuildSPDK.cmake cmake: use "" for no-op INSTALL_COMMAND 2021-03-09 19:13:21 +08:00
Buildthrift.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
Builduring.cmake cmake: Alter GIT_REPOSITORY for liburing 2020-12-03 11:56:43 +10:00
Buildyaml-cpp.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
BuildZstd.cmake cmake: allow use libzstd in system 2021-03-31 12:53:39 +08:00
CephCheck_link.c
CephCheck_link.map
CephChecks.cmake cmake: s/HAVE_MSGHDR/WITH_SYSTEMD/ 2021-04-08 16:58:50 +08:00
CheckCxxAtomic.cmake
CheckNasm.cmake cmake: only display the result of checking nasm once 2021-01-04 01:34:46 +08:00
CTags.cmake cmake: don't include tags for Python imports, .tox, build/ dirs 2020-08-10 22:53:03 +00:00
Distutils.cmake cmake: install python scripts into /usr/sbin even if DESTDIR is empty 2020-12-21 01:26:46 +08:00
ExternalProjectHelper.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
Findaio.cmake
Findbabeltrace.cmake
FindBacktrace.cmake
Findblkid.cmake
FindBoost.cmake cmake: adapt FindBoost.cmake to our needs 2021-03-19 20:35:51 +08:00
Findc-ares.cmake
FindCUnit.cmake
FindCython.cmake
Finddpdk.cmake
Findfcgi.cmake
Findfmt.cmake
FindFUSE.cmake
FindGMock.cmake
Findgperftools.cmake
FindGSSApi.cmake
FindJeMalloc.cmake
Findkeyutils.cmake
Findleveldb.cmake
Findlibcryptsetup.cmake cmake: fix unknown pkg_search_module 2020-12-02 06:18:52 -05:00
FindLTTngUST.cmake
FindLZ4.cmake
FindMake.cmake
Findnl.cmake
FindNUMA.cmake cmake: use NUMA for package name in FindNUMA.cmake 2021-02-14 23:11:33 +08:00
FindOATH.cmake
FindOpenLdap.cmake
Findpmem.cmake cmake/modules/Findpmem: always set pmem_VERSION_STRING 2021-04-26 16:38:09 +08:00
FindPython3.cmake
Findqatzip.cmake
FindRabbitMQ.cmake
FindRDKafka.cmake
Findrdmacm.cmake
FindRocksDB.cmake
FindSanitizers.cmake cmake: expose Sanitizers_COMPILE_OPTIONS as a list 2020-08-31 16:11:33 +08:00
Findsnappy.cmake
FindSQLite3.cmake libcephsqlite: rework architecture and backend 2021-03-19 08:52:55 -07:00
FindStdFilesystem_test.cc
FindStdFilesystem.cmake cmake: do not always require extra link flags for std::filesystem 2020-12-02 19:42:34 +08:00
Findudev.cmake
Finduring.cmake
Finduuid.cmake
Findverbs.cmake
Findxfs.cmake
Findyaml-cpp.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
Findzbd.cmake os/bluestore: Switch from libzbc library to libzbd library 2020-09-06 12:35:05 -04:00
Findzfs.cmake
FindZstd.cmake cmake: allow use libzstd in system 2021-03-31 12:53:39 +08:00
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
IncludeJaeger.cmake jaeger, build/op: add jaeger and it's dependencies as submodules 2020-12-11 07:55:46 +00:00
LimitJobs.cmake cmake: use ninja job pool 2021-03-21 15:52:13 +08:00
patch-dpdk-conf.sh
SIMDExt.cmake