mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-26 00:27:17 +00:00
Fix regex which parses the gcc version.
This commit is contained in:
parent
9122f465d7
commit
39e1785cf8
@ -281,7 +281,7 @@ ELSE (_boost_IN_CACHE)
|
||||
ARGS --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})
|
||||
SET (_boost_COMPILER "-gcc${_boost_COMPILER_VERSION}")
|
||||
ENDIF (NOT CMAKE_COMPILER_IS_GNUCC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user