ceph/cmake/modules
Kefu Chai bbb69fe793 cmake: require CMake v3.10.2
since we dropped the support of xenial, we now have the luxury of using
newer CMake! and by using CMake 3.10.2, we can prevent libfmt from
assuming that we are using C++11, and hence set `CMAKE_CXX_STANDARD` to
11, which will literally append `-std=gnu++11` to `CMAKE_CXX_FLAGS`.
the last `-std` option passed to `g++` takes precendence.
since we've switched over to C++17, and we are using C++17 features.
so, using cmake older than 3.8 breaks the build. because it is CMake 3.8
which stared support `CMAKE_CXX_STANDARD` 17.

- for bionic: https://packages.ubuntu.com/bionic/cmake : 3.10.2
- for CentOS7:
https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/c/ : 3.13.5

so in this change,

* bump up the required version to v3.10.2
* cleanups to wipe out the workaround for lower CMake versions
* use `PROJECT_VERSION` defined by `project()` command instead of
  `VERSION` explicitly defined.

Signed-off-by: Kefu Chai <kchai@redhat.com>
2019-08-02 22:09:12 +08:00
..
FindPython cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
AddCephTest.cmake cmake: add add_tox_test() 2019-08-01 21:33:30 +08:00
boost_context_asm_arm_syntax_unified.patch cmake: move boost patch to cmake/modules 2019-06-12 16:32:10 +08:00
boost_lockfree_queue_valgrind_error.patch cmake: boost valgrind fixes for boost::lockfree::queue 2019-06-28 10:56:03 -04:00
BuildBoost.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
Buildc-ares.cmake cmake: build c-ares if it's not found or not new enough 2018-07-25 13:13:45 +08:00
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
Buildpmem.cmake cmake: move pmdk build script to Buildpmem.cmake 2019-07-10 11:43:27 -04:00
BuildQatDrv.cmake crypto: QAT Wrapper for Ceph Encryption 2018-10-18 21:48:18 -07:00
BuildRocksDB.cmake cmake/modules/BuildRocksDB.cmake: use BUILD_ALWAYS 2019-07-11 19:30:28 +08:00
BuildSPDK.cmake cmake: silence -Waddress-of-packed-member warnings from SPDK 2019-06-13 19:35:26 +08:00
CheckCxxAtomic.cmake cmake: should link against libatomic if libcxx/libstdc++ does not offer atomic ops 2018-07-10 01:37:00 +08:00
CheckYasm.cmake cmake: extract Yasm check into a module 2018-07-28 16:53:10 +08:00
CTags.cmake cmake: do not try to add submodule to exclude list if .git is not around 2017-04-13 13:49:54 +08:00
Distutils.cmake cmake/modules/Distutils: do not add ${name}-clone if already added 2019-07-26 12:11:25 +02:00
Findaio.cmake cmake: fix libaio detection 2016-07-25 15:40:30 +08:00
Findbabeltrace.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
FindBacktrace.cmake cmake: add missing FindBacktrace.cmake 2016-07-25 15:39:02 +08:00
Findblkid.cmake cmake: cleanup Findblkid.cmake 2016-07-25 15:40:30 +08:00
FindBoost.cmake cmake: update FindBoost.cmake 2019-07-30 16:00:04 +02:00
Findc-ares.cmake cmake: require 4.0.0 <= libfmt-dev < 5.0.0 2018-08-02 22:14:03 +08:00
FindCUnit.cmake cmake: build spdk/dpdk in cmake modules 2017-11-17 15:37:53 +08:00
FindCython.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
Finddpdk.cmake cmake: fix the build WITH_DPDK=ON 2018-09-05 13:53:57 +08:00
Findfcgi.cmake cmake: remove stale comments 2018-06-28 13:21:02 +08:00
Findfio.cmake test/fio: enable objectstore FIO plugin building without the need to install and build FIO source code 2018-03-05 20:35:08 +03:00
Findfmt.cmake cmake: fix version matching for Findfmt 2018-09-10 10:22:24 -04:00
Findfuse.cmake cmake: align cmake names of library packages 2017-05-04 11:14:43 +02:00
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 cmake: cleanup Findleveldb.cmake 2016-08-11 14:53:02 +08:00
FindLTTngUST.cmake cmake: replace Findlttng-ust.cmake with FindLTTngUST.cmake 2016-08-30 15:51:51 +08:00
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
FindOATH.cmake cmake: cmake: oath lives in liboath 2018-06-10 16:21:41 +02:00
FindOpenLdap.cmake cmake: cleanup FindOpenLdap.cmake 2016-07-25 15:39:01 +08:00
Findpmem.cmake cmake: Add the support to use system PMDK library 2019-07-10 11:43:27 -04:00
FindPython2.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
FindPython3.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
FindPython.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
Findqatzip.cmake compressor: add QAT support 2018-04-18 12:05:44 +08:00
FindRabbitMQ.cmake cmake: find_package(RabbitMQ) instead of just checking its header 2019-02-21 19:00:24 +08:00
Findrdmacm.cmake cmake: extract the RDMA libraries interface properties out 2018-06-28 23:26:28 +08:00
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: require CMake v3.10.2 2019-08-02 22:09:12 +08:00
Findudev.cmake cmake: cleanup Findudev.cmake 2016-07-25 15:40:30 +08:00
Finduuid.cmake cmake,rpm,deb: update to accommodate SPDK v17.10 2017-11-29 18:03:23 +08:00
Findverbs.cmake cmake: extract the RDMA libraries interface properties out 2018-06-28 23:26:28 +08:00
Findxfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
Findzfs.cmake cmake: compile libzfs backend conditionally 2017-06-27 23:28:03 +08:00
GetGitRevisionDescription.cmake Update git rev parsing in CMake 2016-06-10 14:22:31 -04:00
GetGitRevisionDescription.cmake.in Update git rev parsing in CMake 2016-06-10 14:22:31 -04:00
patch-dpdk-conf.sh cmake: specify missing settings for dpdk 2018-05-06 15:26:14 +08:00
SIMDExt.cmake Merge pull request #24168 from tchaikov/wip-17516 2018-10-04 16:10:18 -07:00