From 2ebae6508b7fee2278b03787f194ddc862d670e1 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Mon, 15 Jun 2020 14:11:57 +0200 Subject: [PATCH] Emit warning when AppleClang < 9.0 is detected --- cmake/setup_compiler_flags_gnu.cmake | 12 ++++++++++++ doc/readme.html | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/cmake/setup_compiler_flags_gnu.cmake b/cmake/setup_compiler_flags_gnu.cmake index 78a54771d9..28b00ed5b3 100644 --- a/cmake/setup_compiler_flags_gnu.cmake +++ b/cmake/setup_compiler_flags_gnu.cmake @@ -36,6 +36,18 @@ IF( CMAKE_CXX_COMPILER_ID MATCHES "Clang" AND ) ENDIF() +# Correspondence between AppleClang version and upstream Clang version: +# https://en.wikipedia.org/wiki/Xcode#Xcode_7.0_-_11.x_(since_Free_On-Device_Development) +IF (POLICY CMP0025) + IF( CMAKE_CXX_COMPILER_ID MATCHES "AppleClang" AND + CMAKE_CXX_COMPILER_VERSION VERSION_LESS "9.0" ) + MESSAGE(WARNING "\n" + "deal.II requires support for features of C++14 that are not present in\n" + "versions of AppleClang prior to 9.0." + ) + ENDIF() +ENDIF() + ######################## # # diff --git a/doc/readme.html b/doc/readme.html index 9ee9842e49..eecdd24ea1 100644 --- a/doc/readme.html +++ b/doc/readme.html @@ -63,7 +63,8 @@