From a2b19b120d4fc3ea4b870e152654841530dd62fb Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Fri, 31 Oct 2008 15:03:03 +0000 Subject: [PATCH] Use ^4 and ^4.2 as regular expression, to be sure that we do not matches another part of the version. --- Installation/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Installation/CMakeLists.txt b/Installation/CMakeLists.txt index a6d8f513d08..b534486429d 100644 --- a/Installation/CMakeLists.txt +++ b/Installation/CMakeLists.txt @@ -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()