From b69a1d225a0736a1fabbb6b03bcdb5815f681de0 Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Thu, 8 Mar 2012 10:01:40 +0100 Subject: [PATCH] Use -std=gnu++0x instead of -std=c++0x Bluez uses the non standard "typeof" instead of "__typeof__" in bluetooth.h. Both GCC and Clang reject that with std=c++0x but accept it with gnu++0x. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c59e3f7c07..b64c5b6f61 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -552,7 +552,7 @@ option(UNITTESTS "Build unitests" OFF) ######################################## # Start compiling our code # -add_definitions(-std=c++0x) +add_definitions(-std=gnu++0x) add_subdirectory(Source)