Commit 03693621 authored by Brad King's avatar Brad King 💬
Browse files

FindBoost: Restore finding without CXX language enabled

Since commit v3.13.0~7^2 (FindBoost: Improve compiler prefix
detection for GCC 5+ and clang 4+, 2018-11-07) we run the internal
`_Boost_COMPILER_DUMPVERSION` macro on all UNIX platforms.  Teach
the macro to tolerate missing `CMAKE_CXX_COMPILER_VERSION`, which
occurs when the CXX language is not enabled.

Fixes: #18624
parent 05a2ca7f
......@@ -409,15 +409,12 @@ endmacro()
# Runs compiler with "-dumpversion" and parses major/minor
# version with a regex.
# Convert CMAKE_CXX_COMPILER_VERSION to boost compiler suffix version.
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)(\\.[0-9]+)?" "\\1"
string(REGEX REPLACE "([0-9]+)\\.([0-9]+)(\\.[0-9]+)?" "\\2"
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment