diff --git a/cmake/modules/AmdisCXXFeatures.cmake b/cmake/modules/AmdisCXXFeatures.cmake index bd09b440d6d6d034c93efc4db09118cfd1fcb114..46beb0dde2b30319a022c23560a0e5f779ec60d5 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 @@ -53,3 +55,5 @@ check_cxx_source_compiles(" } " AMDIS_HAS_CXX_AUTO_TEMPLATE_PARAMETER ) + +unset(CMAKE_REQUIRED_FLAGS) \ No newline at end of file