From cd882b547ee444cd89caa3c9a2805931994c6719 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 15 Nov 2013 14:16:42 -0800 Subject: [PATCH] Fix clang build. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1ffa703e..047731bb 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ project(FORMAT) include(CheckCXXCompilerFlag) check_cxx_compiler_flag(-std=c++11 HAVE_STD_CPP11_FLAG) if (HAVE_STD_CPP11_FLAG) - add_definitions(-std=c++11) + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") endif () add_library(format format.cc)