diff options
author | Ben Boeckel <ben.boeckel@kitware.com> | 2017-11-06 18:26:23 (GMT) |
---|---|---|
committer | Ben Boeckel <ben.boeckel@kitware.com> | 2017-11-06 18:26:23 (GMT) |
commit | d70bdc72ce5f480947077e435433fc6cf524be4d (patch) | |
tree | 89ad5d7b256cb7bad224dc352e601e7a71773b42 /Modules | |
parent | 335816efad6904fb5c6059a791d7b0eea4882bc0 (diff) | |
download | CMake-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.cmake | 2 |
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) |