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
Distutils.cmake cmake/modules/Distutils: do not add ${name}-clone if already added 2019-07-26 12:11:25 +02:00
Findaio.cmake
Findbabeltrace.cmake
FindBacktrace.cmake
Findblkid.cmake
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
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
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
FindOATH.cmake cmake: cmake: oath lives in liboath 2018-06-10 16:21:41 +02:00
FindOpenLdap.cmake
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
Finduuid.cmake
Findverbs.cmake cmake: extract the RDMA libraries interface properties out 2018-06-28 23:26:28 +08:00
Findxfs.cmake
Findzfs.cmake
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
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