]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Enable -std=c++0x support in step-42. This is required due to the use of unique_ptr
authormaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Mar 2013 23:34:32 +0000 (23:34 +0000)
committermaier <maier@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Mar 2013 23:34:32 +0000 (23:34 +0000)
git-svn-id: https://svn.dealii.org/trunk@28829 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-42/CMakeLists.txt

index 7a8c34dac54a01fa76110b26d1ba3c0d3397630b..3a31e1a5b4615c71ed1e01656a7d4f836870696c 100644 (file)
@@ -57,4 +57,13 @@ ENDIF()
 
 DEAL_II_INITIALIZE_CACHED_VARIABLES()
 PROJECT(${TARGET})
+
+#
+# Workaround: Enable -std=c++0x for Clang as std::unique_ptr is not
+# standardized in C++03
+#
+IF(CMAKE_CXX_COMPILER_ID matches Clang)
+  SET(CMAKE_CXX_FLAGS "-std=c++0x ${CMAKE_CXX_FLAGS})
+ENDIF()
+
 DEAL_II_INVOKE_AUTOPILOT()

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.