Add test for c++1z and gnu++XX flags

This commit is contained in:
Simon Giraudot 2015-12-17 10:18:20 +01:00
parent bd7bd270b7
commit c2003e8a2a
1 changed files with 2 additions and 2 deletions

View File

@ -10,10 +10,10 @@ if ( NOT CGAL_Boost_Setup )
AND(
#GCC 4.8+ with c++11 on
( NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4.8
AND CMAKE_CXX_FLAGS MATCHES "\\-std=c\\+\\+[01][14yx]")
AND CMAKE_CXX_FLAGS MATCHES "\\-std=(c|gnu)\\+\\+[01][14yxz]")
#GCC 6.0+ without c++03 on
OR ( NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 6.0
AND NOT CMAKE_CXX_FLAGS MATCHES "\\-std=c\\+\\+[90][83]")
AND NOT CMAKE_CXX_FLAGS MATCHES "\\-std=(c|gnu)\\+\\+[90][83]")
) )
set ( CGAL_requires_Boost_libs FALSE )
endif()