From 9ef628c95cdb9f5ac9cb670730b78ba5759e225c Mon Sep 17 00:00:00 2001 From: maier Date: Fri, 8 Mar 2013 23:34:32 +0000 Subject: [PATCH] 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 --- deal.II/examples/step-42/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) 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() -- 2.39.5