BUG: fixed bug #7529: FindBoost fails to find boost on SuSE 11.0 due to GCC

reporting version x.y and not x.y.z
This commit is contained in:
Philip Lowman 2009-01-15 02:07:03 -05:00
parent 0864c71c3b
commit 20f2a086d3
1 changed files with 2 additions and 2 deletions

View File

@ -459,7 +459,7 @@ ELSE (_boost_IN_CACHE)
ARGS -dumpversion ARGS -dumpversion
OUTPUT_VARIABLE _boost_COMPILER_VERSION OUTPUT_VARIABLE _boost_COMPILER_VERSION
) )
STRING(REGEX REPLACE "([0-9])\\.([0-9])\\.[0-9]" "\\1\\2" STRING(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
_boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
SET (_boost_COMPILER "-mgw${_boost_COMPILER_VERSION}") SET (_boost_COMPILER "-mgw${_boost_COMPILER_VERSION}")
ENDIF(MINGW) ENDIF(MINGW)
@ -473,7 +473,7 @@ ELSE (_boost_IN_CACHE)
ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion ARGS ${CMAKE_CXX_COMPILER_ARG1} -dumpversion
OUTPUT_VARIABLE _boost_COMPILER_VERSION OUTPUT_VARIABLE _boost_COMPILER_VERSION
) )
STRING(REGEX REPLACE "([0-9])\\.([0-9])\\.[0-9]" "\\1\\2" STRING(REGEX REPLACE "([0-9])\\.([0-9])(\\.[0-9])?" "\\1\\2"
_boost_COMPILER_VERSION ${_boost_COMPILER_VERSION}) _boost_COMPILER_VERSION ${_boost_COMPILER_VERSION})
IF(APPLE) IF(APPLE)
IF(Boost_MINOR_VERSION) IF(Boost_MINOR_VERSION)