summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2017-11-06 18:26:23 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2017-11-06 18:26:23 (GMT)
commitd70bdc72ce5f480947077e435433fc6cf524be4d (patch)
tree89ad5d7b256cb7bad224dc352e601e7a71773b42 /Modules
parent335816efad6904fb5c6059a791d7b0eea4882bc0 (diff)
downloadCMake-d70bdc72ce5f480947077e435433fc6cf524be4d.zip
CMake-d70bdc72ce5f480947077e435433fc6cf524be4d.tar.gz
CMake-d70bdc72ce5f480947077e435433fc6cf524be4d.tar.bz2
FindBoost: support more than one number in version components
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index bf52d29..6f60eeb 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -391,7 +391,7 @@ endmacro()
# version with a regex.
#
function(_Boost_COMPILER_DUMPVERSION _OUTPUT_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 ${CMAKE_CXX_COMPILER_VERSION})
set(${_OUTPUT_VERSION} ${_boost_COMPILER_VERSION} PARENT_SCOPE)