From: Matthias Maier Date: Fri, 8 Mar 2013 23:34:32 +0000 (+0000) Subject: Enable -std=c++0x support in step-42. This is required due to the use of unique_ptr X-Git-Tag: v8.0.0~1052 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a812d85d8ff148bc7e45042adfede388cd1e4cf;p=dealii.git Enable -std=c++0x support in step-42. This is required due to the use of unique_ptr git-svn-id: https://svn.dealii.org/trunk@28829 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/examples/step-42/CMakeLists.txt b/deal.II/examples/step-42/CMakeLists.txt index 7a8c34dac5..3a31e1a5b4 100644 --- a/deal.II/examples/step-42/CMakeLists.txt +++ b/deal.II/examples/step-42/CMakeLists.txt @@ -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()