From: Matthias Maier Date: Mon, 14 Oct 2013 13:12:28 +0000 (+0000) Subject: Workaround an issue with bundled tbb and clang in C++11 mode X-Git-Tag: v8.1.0~570^2~66 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4729ceae5d49d9bfee06115121a32c21e69329be;p=dealii.git Workaround an issue with bundled tbb and clang in C++11 mode git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31226 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/bundled/tbb41_20130401oss/src/CMakeLists.txt b/deal.II/bundled/tbb41_20130401oss/src/CMakeLists.txt index 1551dc14de..96711a27e0 100644 --- a/deal.II/bundled/tbb41_20130401oss/src/CMakeLists.txt +++ b/deal.II/bundled/tbb41_20130401oss/src/CMakeLists.txt @@ -119,3 +119,9 @@ ELSE() ENDIF() ENDIF() +# +# Workaround for clang to compile in C++11 mode: +# +IF(CMAKE_CXX_COMPILER_ID MATCHES "Clang") + DEAL_II_ADD_DEFINITIONS(obj_tbb "TBB_IMPLEMENT_CPP0X=1") +ENDIF()