Skip to content
Snippets Groups Projects
Commit 20a37b32 authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

check for cxx flags with -pedantic-errors flag

parent 87a7960d
No related branches found
No related tags found
No related merge requests found
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment