From baa1743d8fb0f20d06e6c3af17455c753692375e Mon Sep 17 00:00:00 2001 From: Matt Williams Date: Sat, 25 Feb 2012 22:42:05 +0000 Subject: [PATCH] Enable C++11 support for Clang --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index cba5599e..6ff798d0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,9 @@ endif() IF(CMAKE_COMPILER_IS_GNUCXX) #Maybe "OR MINGW" ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode ENDIF() +if(CMAKE_CXX_COMPILER MATCHES "clang") + ADD_DEFINITIONS(-std=c++0x) #Enable C++0x mode +endif() ADD_SUBDIRECTORY(library)