]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: fix the FTBFS introduced by dc8b3ba 10282/head
authorKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 13:44:50 +0000 (21:44 +0800)
committerKefu Chai <kchai@redhat.com>
Wed, 13 Jul 2016 13:50:54 +0000 (21:50 +0800)
the flags are not list

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt

index 42382b6be1b69a500f088268fd979d26a071d048..5ed869ec1179e743636f5d40ab09ec37b047116a 100644 (file)
@@ -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()