diff options
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 157c4e65bdd..06b4d6d506c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -121,6 +121,14 @@ if(CMAKE_VERSION VERSION_LESS "3.8") "The compiler ${CMAKE_CXX_COMPILER} has no C++17 support.") endif() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++17") + + # for compiletest_cxx11_client + CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11) + if(NOT COMPILER_SUPPORTS_CXX11) + message(FATAL_ERROR + "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support.") + endif() + include(CheckCCompilerFlag) CHECK_C_COMPILER_FLAG("-std=gnu99" COMPILER_SUPPORTS_GNU99) if(NOT COMPILER_SUPPORTS_GNU99) @@ -361,6 +369,7 @@ set(ceph_common_deps Boost::program_options Boost::date_time Boost::iostreams + StdFilesystem::filesystem ${BLKID_LIBRARIES} ${Backtrace_LIBRARIES} ${BLKIN_LIBRARIES} @@ -750,7 +759,7 @@ if (WITH_RBD) add_dependencies(vstart cython${PY_BINDING_INFIX}_rbd) endif() if (WITH_CEPHFS) - add_dependencies(vstart ceph-mds) + add_dependencies(vstart ceph-mds cephfs) endif() if(WITH_RADOSGW) add_dependencies(vstart radosgw radosgw-admin) |