mirror of
https://github.com/ceph/ceph
synced 2025-01-18 17:12:29 +00:00
cmake: fix the FTBFS introduced by dc8b3ba
the flags are not list Signed-off-by: Kefu Chai <kchai@redhat.com>
This commit is contained in:
parent
d49ce27a74
commit
4b73cdc019
@ -102,7 +102,7 @@ if(CMAKE_VERSION VERSION_LESS "3.1")
|
||||
include(CheckCXXCompilerFlag)
|
||||
CHECK_CXX_COMPILER_FLAG("-std=c++11" COMPILER_SUPPORTS_CXX11)
|
||||
if(COMPILER_SUPPORTS_CXX11)
|
||||
list(APPEND CMAKE_CXX_FLAGS -std=c++11)
|
||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
else()
|
||||
message(FATAL_ERROR "The compiler ${CMAKE_CXX_COMPILER} has no C++11 support.")
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user