From 3f187c3334c8b2f648d24f3ea090225b1a0309ea Mon Sep 17 00:00:00 2001 From: Liu Yiqun Date: Wed, 29 Mar 2017 12:17:43 +0800 Subject: [PATCH] Fix cmake broken when using lower version. --- cmake/flags.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/flags.cmake b/cmake/flags.cmake index d8a38890338..7eb92efcb00 100644 --- a/cmake/flags.cmake +++ b/cmake/flags.cmake @@ -26,7 +26,7 @@ function(CheckCompilerCXX11Flag) endfunction() CheckCompilerCXX11Flag() -string(APPEND CMAKE_CXX_FLAGS " -std=c++11") +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") # safe_set_flag # -- GitLab