Use ^4 and ^4.2 as regular expression, to be sure that we do not matches

another part of the version.
This commit is contained in:
Laurent Rineau 2008-10-31 15:03:03 +00:00
parent cd96b8cfbc
commit a2b19b120d
1 changed files with 2 additions and 2 deletions

View File

@ -278,12 +278,12 @@ if ( CMAKE_COMPILER_IS_GNUCC )
get_dependency_version(GCC)
if ( "${GCC_VERSION}" MATCHES "4." )
if ( "${GCC_VERSION}" MATCHES "^4." )
message( STATUS "Using gcc version 4 or later. Adding -frounding-math" )
uniquely_add_flags( CGAL_CXX_FLAGS "-frounding-math" )
endif()
if ( "${GCC_VERSION}" MATCHES "4.2" )
if ( "${GCC_VERSION}" MATCHES "^4.2" )
message( STATUS "Using gcc version 4.2. Adding -fno-strict-aliasing" )
uniquely_add_flags( CGAL_CXX_FLAGS "-fno-strict-aliasing" )
endif()