summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2018-11-27 13:44:03 (GMT)
committerKitware Robot <kwrobot@kitware.com>2018-11-27 13:44:11 (GMT)
commit4aad340ec446e3def2bda4f2d474ab0cf86e902e (patch)
tree43dc114432a6bd789751eb84793e16db4dc44156 /Modules
parentcee843475d82150cc56d12badd04eb737bff6551 (diff)
parent0369362132b3deae30828299131647cc3754abeb (diff)
downloadCMake-4aad340ec446e3def2bda4f2d474ab0cf86e902e.zip
CMake-4aad340ec446e3def2bda4f2d474ab0cf86e902e.tar.gz
CMake-4aad340ec446e3def2bda4f2d474ab0cf86e902e.tar.bz2
Merge topic 'FindBoost-no-cxx'
0369362132 FindBoost: Restore finding without CXX language enabled Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !2663
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindBoost.cmake9
1 files changed, 3 insertions, 6 deletions
diff --git a/Modules/FindBoost.cmake b/Modules/FindBoost.cmake
index a336495..ce307fa 100644
--- a/Modules/FindBoost.cmake
+++ b/Modules/FindBoost.cmake
@@ -411,15 +411,12 @@ endmacro()
#-------------------------------------------------------------------------------
-#
-# Runs compiler with "-dumpversion" and parses major/minor
-# version with a regex.
-#
+# Convert CMAKE_CXX_COMPILER_VERSION to boost compiler suffix version.
function(_Boost_COMPILER_DUMPVERSION _OUTPUT_VERSION _OUTPUT_VERSION_MAJOR _OUTPUT_VERSION_MINOR)
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)(\\.[0-9]+)?" "\\1"
- _boost_COMPILER_VERSION_MAJOR ${CMAKE_CXX_COMPILER_VERSION})
+ _boost_COMPILER_VERSION_MAJOR "${CMAKE_CXX_COMPILER_VERSION}")
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)(\\.[0-9]+)?" "\\2"
- _boost_COMPILER_VERSION_MINOR ${CMAKE_CXX_COMPILER_VERSION})
+ _boost_COMPILER_VERSION_MINOR "${CMAKE_CXX_COMPILER_VERSION}")
set(_boost_COMPILER_VERSION "${_boost_COMPILER_VERSION_MAJOR}${_boost_COMPILER_VERSION_MINOR}")