From: Martin Kronbichler Date: Tue, 23 Jul 2013 06:45:12 +0000 (+0000) Subject: Fix warning with clang: Do not use -funroll-all-loops X-Git-Tag: v8.1.0~1231 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbf973209101decfe47272bb8b5feb9213f715d4;p=dealii.git Fix warning with clang: Do not use -funroll-all-loops git-svn-id: https://svn.dealii.org/trunk@30122 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/cmake/setup_compiler_flags_gnu.cmake b/deal.II/cmake/setup_compiler_flags_gnu.cmake index 45d88b1975..68132223e4 100644 --- a/deal.II/cmake/setup_compiler_flags_gnu.cmake +++ b/deal.II/cmake/setup_compiler_flags_gnu.cmake @@ -120,7 +120,9 @@ IF (CMAKE_BUILD_TYPE MATCHES "Release") ADD_FLAGS(DEAL_II_CXX_FLAGS_RELEASE "-O2") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-loops") - ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops") + IF(NOT(CMAKE_CXX_COMPILER_ID MATCHES "Clang")) + ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-funroll-all-loops") + ENDIF() ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-fstrict-aliasing") ENABLE_IF_SUPPORTED(DEAL_II_CXX_FLAGS_RELEASE "-felide-constructors")