diff --git a/Installation/cmake/modules/CGAL_SetupBoost.cmake b/Installation/cmake/modules/CGAL_SetupBoost.cmake index 5e652c9a22c..0d5b5570e72 100644 --- a/Installation/cmake/modules/CGAL_SetupBoost.cmake +++ b/Installation/cmake/modules/CGAL_SetupBoost.cmake @@ -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()