Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Clang 3.4.2 #1159

Closed
eschnett opened this issue Jun 20, 2014 · 0 comments
Closed

Support Clang 3.4.2 #1159

eschnett opened this issue Jun 20, 2014 · 0 comments

Comments

@eschnett
Copy link
Contributor

The cmake code that autodetects Clang's version number expects only two digits (e.g. "3.4"). Clang 3.4.2 uses three digits. I suggest the enclosed patch.

  --- cmake/FindHPX_Boost.cmake
  +++ cmake/FindHPX_Boost.cmake
  @@ -27,7 +27,7 @@
           ARGS ${CMAKE_CXX_COMPILER_ARG1} --version
           OUTPUT_VARIABLE BOOST_COMPILER_VERSION_NUMBER)

  -      string(REGEX REPLACE "clang version ([0-9])\\.([0-9]) .*" "\\1\\2"
  +      string(REGEX REPLACE "clang version ([0-9])\\.([0-9])(\\.[0-9])? .*" "\\1\\2"
           BOOST_COMPILER_VERSION_NUMBER ${BOOST_COMPILER_VERSION_NUMBER})
       elseif(NOT MSVC)
         exec_program(${CMAKE_CXX_COMPILER}
  EOT
@hkaiser hkaiser added this to the 0.9.9 milestone Jun 20, 2014
@hkaiser hkaiser self-assigned this Jun 20, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants