From 4092d6e20f9a0c79739c5131e1e1c38a413f734f Mon Sep 17 00:00:00 2001 From: Danny Edel Date: Fri, 20 May 2016 10:03:05 +0200 Subject: [PATCH] clang: disable macro expansion error --- cmake/compiler_clang.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/compiler_clang.cmake b/cmake/compiler_clang.cmake index e18dcfb..643536e 100644 --- a/cmake/compiler_clang.cmake +++ b/cmake/compiler_clang.cmake @@ -32,6 +32,9 @@ endif() # TODO: Set this only for the automoc files add_definitions(-Wno-error=undefined-reinterpret-cast) +# Clang on recent XCode fails to compile the boost tests +add_definitions(-Wno-error=disabled-macro-expansion) + #message(FATAL_ERROR "Version: ${CMAKE_CXX_COMPILER_VERSION}") # clang will complain about -isystem passed but not used. -- 2.47.3