mirror of
https://github.com/ceph/ceph
synced 2024-12-26 13:33:57 +00:00
bbb69fe793
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> |
||
---|---|---|
.. | ||
FindPython | ||
AddCephTest.cmake | ||
boost_context_asm_arm_syntax_unified.patch | ||
boost_lockfree_queue_valgrind_error.patch | ||
BuildBoost.cmake | ||
Buildc-ares.cmake | ||
BuildDPDK.cmake | ||
BuildFIO.cmake | ||
Buildpmem.cmake | ||
BuildQatDrv.cmake | ||
BuildRocksDB.cmake | ||
BuildSPDK.cmake | ||
CheckCxxAtomic.cmake | ||
CheckYasm.cmake | ||
CTags.cmake | ||
Distutils.cmake | ||
Findaio.cmake | ||
Findbabeltrace.cmake | ||
FindBacktrace.cmake | ||
Findblkid.cmake | ||
FindBoost.cmake | ||
Findc-ares.cmake | ||
FindCUnit.cmake | ||
FindCython.cmake | ||
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 | ||
FindOATH.cmake | ||
FindOpenLdap.cmake | ||
Findpmem.cmake | ||
FindPython2.cmake | ||
FindPython3.cmake | ||
FindPython.cmake | ||
Findqatzip.cmake | ||
FindRabbitMQ.cmake | ||
Findrdmacm.cmake | ||
FindRocksDB.cmake | ||
FindSanitizers.cmake | ||
Findsnappy.cmake | ||
FindStdFilesystem_test.cc | ||
FindStdFilesystem.cmake | ||
Findudev.cmake | ||
Finduuid.cmake | ||
Findverbs.cmake | ||
Findxfs.cmake | ||
Findzfs.cmake | ||
GetGitRevisionDescription.cmake | ||
GetGitRevisionDescription.cmake.in | ||
patch-dpdk-conf.sh | ||
SIMDExt.cmake |