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

Merge branch 'issue/cmake_cxx_flags_pedantic' into 'master'

check for cxx flags with -pedantic-errors flag

See merge request !81
parents 87a7960d 20a37b32
No related branches found
No related tags found
1 merge request!81check for cxx flags with -pedantic-errors flag
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