]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Workaround an issue with bundled tbb and clang in C++11 mode
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2013 13:12:28 +0000 (13:12 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 14 Oct 2013 13:12:28 +0000 (13:12 +0000)
git-svn-id: https://svn.dealii.org/branches/branch_port_the_testsuite@31226 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/bundled/tbb41_20130401oss/src/CMakeLists.txt

index 1551dc14de043a13cedf296f3cbca7ffe1369c77..96711a27e0e036e560eb9db055b2c06e532cca06 100644 (file)
@@ -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()

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.