From 20a37b32af58f0312c40c455a80d11efa53ace73 Mon Sep 17 00:00:00 2001
From: "Praetorius, Simon" <simon.praetorius@tu-dresden.de>
Date: Wed, 21 Aug 2019 16:23:47 +0200
Subject: [PATCH] check for cxx flags with -pedantic-errors flag

---
 cmake/modules/AmdisCXXFeatures.cmake | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/cmake/modules/AmdisCXXFeatures.cmake b/cmake/modules/AmdisCXXFeatures.cmake
index bd09b440..46beb0dd 100644
--- a/cmake/modules/AmdisCXXFeatures.cmake
+++ b/cmake/modules/AmdisCXXFeatures.cmake
@@ -1,5 +1,7 @@
 include(CheckCXXSourceCompiles)
 
+set(CMAKE_REQUIRED_FLAGS "-pedantic-errors")
+
 # fold expressions (a + ...)
 check_cxx_source_compiles("
   template <class... Args>
@@ -53,3 +55,5 @@ check_cxx_source_compiles("
   }
 "  AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER
 )
+
+unset(CMAKE_REQUIRED_FLAGS)
\ No newline at end of file
-- 
GitLab