From 9ee509b1018cc1e6fc3f1ac99868defa6c9373ae Mon Sep 17 00:00:00 2001 From: Kearwood Gilbert Date: Thu, 11 Jul 2019 21:37:28 -0700 Subject: [PATCH] Add C++11 flag for macOS --- tools/toolchain-x86_64-apple-darwin-clang.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/toolchain-x86_64-apple-darwin-clang.cmake b/tools/toolchain-x86_64-apple-darwin-clang.cmake index 5b7cfe8..47bff01 100644 --- a/tools/toolchain-x86_64-apple-darwin-clang.cmake +++ b/tools/toolchain-x86_64-apple-darwin-clang.cmake @@ -7,5 +7,5 @@ set(CMAKE_C_COMPILER_TARGET ${triple}) set(CMAKE_CXX_COMPILER clang++) set(CMAKE_CXX_COMPILER_TARGET ${triple}) set(CMAKE_C_FLAGS "-m64 -DGL_SILENCE_DEPRECATION") -set(CMAKE_CXX_FLAGS "-m64 -DGL_SILENCE_DEPRECATION") +set(CMAKE_CXX_FLAGS "-m64 -std=c++11 -DGL_SILENCE_DEPRECATION")