From c42f465ec75336074bcc743266d76da79448b687 Mon Sep 17 00:00:00 2001 From: kronbichler Date: Tue, 23 Jul 2013 06:45:12 +0000 Subject: [PATCH] Fix warning with clang: Do not use -funroll-all-loops git-svn-id: https://svn.dealii.org/trunk@30122 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/cmake/setup_compiler_flags_gnu.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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") -- 2.39.5