Skip to content
Snippets Groups Projects

check for cxx flags with -pedantic-errors flag

Merged Praetorius, Simon requested to merge issue/cmake_cxx_flags_pedantic into master
1 file
+ 4
0
Compare changes
  • Side-by-side
  • Inline
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
Loading