1
0
mirror of https://github.com/ceph/ceph synced 2024-12-26 13:33:57 +00:00
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
BuildDPDK.cmake cmake: update built libs of SPDK and DPDK 2019-06-13 19:35:26 +08:00
BuildFIO.cmake
Buildpmem.cmake cmake: move pmdk build script to Buildpmem.cmake 2019-07-10 11:43:27 -04:00
BuildQatDrv.cmake
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
CheckYasm.cmake
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
FindCUnit.cmake
FindCython.cmake cmake: update FindPython* modules 2019-07-20 22:35:07 +08:00
Finddpdk.cmake
Findfcgi.cmake
Findfio.cmake
Findfmt.cmake
Findfuse.cmake
FindGMock.cmake
Findgperftools.cmake
FindGSSApi.cmake
FindJeMalloc.cmake
Findkeyutils.cmake
Findleveldb.cmake
FindLTTngUST.cmake
FindLZ4.cmake
Findnl.cmake cmake: rewrite Findgenl to support components argument 2019-06-19 21:21:00 +08:00
FindOATH.cmake
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
FindRabbitMQ.cmake
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
FindStdFilesystem_test.cc
FindStdFilesystem.cmake cmake: require CMake v3.10.2 2019-08-02 22:09:12 +08:00
Findudev.cmake
Finduuid.cmake
Findverbs.cmake
Findxfs.cmake
Findzfs.cmake
GetGitRevisionDescription.cmake
GetGitRevisionDescription.cmake.in
patch-dpdk-conf.sh
SIMDExt.cmake