diff options
author | Lynx Linden <lynx@lindenlab.com> | 2009-11-30 18:42:45 +0000 |
---|---|---|
committer | Lynx Linden <lynx@lindenlab.com> | 2009-11-30 18:42:45 +0000 |
commit | dcc617fcf5b5b0b84df4b9040693ed872e7abb4f (patch) | |
tree | 9039b39cd77f4b9b067056902ae219bf7bd6edd2 /indra/cmake/00-Common.cmake | |
parent | 5bff5d28ee0cd6b2d17bf1676eecb0ae262f1f48 (diff) |
Made the gcc version number checking more robust in llaudio's
CMakeFiles.txt file. Previously it checked for a narrow range of gcc
versions via a regex:
if (${CXX_VERSION} MATCHES "4.[23]")
Now we explicit check for any version >= 4.2:
if (${CXX_VERSION_NUMBER} GREATER 419)
Diffstat (limited to 'indra/cmake/00-Common.cmake')
-rw-r--r-- | indra/cmake/00-Common.cmake | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/cmake/00-Common.cmake b/indra/cmake/00-Common.cmake index b159092592..1f578eec5f 100644 --- a/indra/cmake/00-Common.cmake +++ b/indra/cmake/00-Common.cmake @@ -119,14 +119,14 @@ if (LINUX) endif (${GXX_VERSION} STREQUAL ${CXX_VERSION}) # Let's actually get a numerical version of gxx's version - STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.([0-9]).*" "\\1\\2\\3" CXX_VERSION ${CXX_VERSION}) + STRING(REGEX REPLACE ".* ([0-9])\\.([0-9])\\.([0-9]).*" "\\1\\2\\3" CXX_VERSION_NUMBER ${CXX_VERSION}) - # gcc 4.3 and above don't like the LL boost and also + # gcc 4.3 and above don't like the LL boost and also # cause warnings due to our use of deprecated headers - if(${CXX_VERSION} GREATER 429) + if(${CXX_VERSION_NUMBER} GREATER 429) add_definitions(-Wno-parentheses) set(CMAKE_CXX_FLAGS "-Wno-deprecated ${CMAKE_CXX_FLAGS}") - endif (${CXX_VERSION} GREATER 429) + endif (${CXX_VERSION_NUMBER} GREATER 429) # End of hacks. |