From 5d8a8360f3df3b12fd5c201c0886bb6b3a78cfb4 Mon Sep 17 00:00:00 2001 From: Chen Gong Date: Sun, 28 Apr 2019 21:39:58 +0800 Subject: [PATCH] fix(CMakeLists.txt): set "-std=c++11" in CMAKE_CXX_FLAGS --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f04b8e63af..abc464a6d4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -149,7 +149,7 @@ if(MSVC) endif() if(UNIX) - add_definitions("-std=c++11") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") endif() if(NOT DEFINED LIB_INSTALL_DIR)