]> danny-edel.de - dspdfviewer.git/commitdiff
clang: disable macro expansion error
authorDanny Edel <mail@danny-edel.de>
Fri, 20 May 2016 08:03:05 +0000 (10:03 +0200)
committerDanny Edel <mail@danny-edel.de>
Fri, 20 May 2016 08:03:05 +0000 (10:03 +0200)
cmake/compiler_clang.cmake

index e18dcfb2beecba01336835db75ac5da728508b8b..643536e864935efb90c2167fde4e9bc468a26011 100644 (file)
@@ -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.